Page 1 of 1

How to implement global getandvalidateuser when I click the button

Posted: Tue Sep 11, 2018 3:00 pm
by Jay
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.

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

Posted: Tue Sep 11, 2018 5:58 pm
by BeeJay
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.