Page 1 of 1

How to remember user, if he does login, after he has do exit the application.

Posted: Wed Mar 18, 2015 9:58 pm
by Andrey Koposov

So than you don't need to write your name and password again.


How to remember user, if he does login, after he has do exit the application.

Posted: Wed Mar 18, 2015 11:17 pm
by Bruce Stuart

Andrey,

My approach to the same problem is to, on click of the login button - to save the values in the controls on the login screen, to local storage variables. That saves the values.

On the next login - In the page show event - I move the values from the local storage values - to the controls on the screen.

Are you aware of how to accomplish that goal using the designer tool, on your login page?

Happy Wednesday!
Bruce


How to remember user, if he does login, after he has do exit the application.

Posted: Thu Mar 19, 2015 1:49 am
by Ellen Schlechter

Here was what I did:
I saved the username and password in local storage when a user signs in. Then on page show/load I set the property based on the local storage.


How to remember user, if he does login, after he has do exit the application.

Posted: Thu Mar 19, 2015 2:46 am
by Bruce Stuart

Hi Ellen,

And .... that approach doesn't work for you ??

Best,

Bruce


How to remember user, if he does login, after he has do exit the application.

Posted: Thu Mar 19, 2015 2:47 am
by Ellen Schlechter

It does work for me.


How to remember user, if he does login, after he has do exit the application.

Posted: Thu Mar 19, 2015 3:11 am
by Bruce Stuart

Awesome.... !


How to remember user, if he does login, after he has do exit the application.

Posted: Thu Mar 19, 2015 8:06 am
by Andrey Koposov

I see, thank you, but if there is method to skip the login page?


How to remember user, if he does login, after he has do exit the application.

Posted: Fri Mar 20, 2015 8:22 pm
by Egor Kotov6832188

Hello Andrey,

You can save credentials in localStorage like Ellen did, and on page load send a request with credentials, unless it's first login.
If login fails show login form, otherwise on success event navigate to second page.