How to implement global getandvalidateuser when I click the button

Forums for specific tips, techniques and example code
Jay
Posts: 25
Joined: Mon Jul 23, 2018 10:15 am

How to implement global getandvalidateuser when I click the button

Postby Jay » Tue Sep 11, 2018 3:00 pm

The first I wanna show the screen of normal functions like search so guests can search the information.
then if they want to login then they click the login button. From then on, getandvalidateuser function is triggered..
how do I do that?
Really hard to find information of how to do this.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: How to implement global getandvalidateuser when I click the button

Postby BeeJay » Tue Sep 11, 2018 5:58 pm

You don't manually call the Global::getAndValidateUser function, it is called automatically for you by Jade when your application first launches.

If you want to have some functionality available, without logging on, and then when they visit other areas of your application they need to logon you would simply implement your own method logic to display the relevant 'logon' form and then validate their credentials before allowing them into the secure areas of your application.

Cheers,
BeeJay.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 14 guests