NetTalk Central

Author Topic: inquiry about examples application  (Read 5114 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
inquiry about examples application
« on: September 24, 2017, 07:37:11 PM »
hi friends,
i am in the midst of developing a membership based online magazine subscription system.
thus, i need to develop a web application for the advertiser to login and register and make payment (direct carrier billing or credit card). I also allow article contributor to login to upload the articles online.

Then i need to develop a mobile app that will be used by members. They will use the mobile app to register and make payment via direct carrier billing and once they are successfully registered, they can view the online articles.

If it is a desktop application, i can finish it in less than a day.

With nettalk, i am still struggling with login screen (hide or unhide menu based on user level) for days.

May i know what are the relevant examples that i can refer to so that it can expediate my work?

I have referred to basic login and login with captcha and try to integrate.

regards,
jason

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: inquiry about examples application
« Reply #1 on: September 25, 2017, 06:03:01 AM »
Hi Jason,

>> With nettalk, i am still struggling with login screen (hide or unhide menu based on user level) for days.

Example 3 is probably the one you should use.
does that do what you want?

cheers
Bruce




ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: inquiry about examples application
« Reply #2 on: September 25, 2017, 11:29:36 PM »
hi bruce,
i did refer to the examples of web3 and created the login form from scratch and it didnt work.
now, what i did is that i copy the dct file into my dct and import just the loginform and add in my code to refer to the database for user name and it works.
i understand that we are strongly encouraged to store hash of the password instead of the real password in the database. Thus, when the user create their login name and password, thats where in the form when they press save, i should do the hashing.
where can i find such hashing code in the examples folder?


also, the user who logged in can see only selective menu. Therefore, i can do this by putting user level number in the PageHeaderMenu?



jason

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: inquiry about examples application
« Reply #3 on: September 27, 2017, 04:23:11 AM »
Hi Jason,

step back just a second mate.
So first question - if you run example 3 - does it do what you need your app to do?
In other words, does that example work the way you want your app to work?

Cheers
Bruce

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: inquiry about examples application
« Reply #4 on: September 27, 2017, 07:01:36 PM »
Hi Bruce,
Yes, the example web3 helps. What i did is i import that LoginForm procedure into my application and put it some code to read from file and disable the hashing code and it works.
Now, the next step is to incorporate the hashing part for my password.

jason

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: inquiry about examples application
« Reply #5 on: September 27, 2017, 09:55:43 PM »
the hash value in that form is there to prevent the form from being "replayed".
So you should leave that in - it has nothing to do with the storage of the password as a SALTed Hashed field.

I don't think there's an example with the SALTed-hashed password in the shipping set at the moment - although I've done a couple webinars on it. I'll try and add an example after I get back from CIDC (please remind me.)

cheers
Bruce