Reputation: 73
In the 'AuthenticationOptions', If i set true the propperty "RememberLastUsername", the username is always autocomplete with the previous username that i wrote in the login form. If i set the property to false, the username never remember the last username i wrote in the login form.
What i want is that login form can to remember the previous userName i wrote if i checked the "remember me" option in the login form, if i do not check that option i do no want that username is remembered next time i will log in.
It is possible with the identityServer properties?
thanks in advance
Upvotes: 0
Views: 983
Reputation: 7435
Those are two different settings. The "RememberLastUsername" works as you described it -- it just is a convenience for pre-populating the username and it is implemented by issuing a cookie. This is a global setting and is unrelated to the "remember me" checkbox on the login page.
The "remember me" checkbox issues a persistent login cookie for the user and as such the user will no longer be take to the login page when an application makes login requests against IdentityServer.
Upvotes: 1