User Unlock
-
-
I created new user by membership. when user type the wrong password too many, this user will locked. I want to ask user to Unlock through submit PasswordAnswer for PasswordQuestion. But I can't validate the PasswordAnswer was submited. How to do ?
-
I created new user by membership. when user type the wrong password too many, this user will locked. I want to ask user to Unlock through submit PasswordAnswer for PasswordQuestion. But I can't validate the PasswordAnswer was submited. How to do ?
I don't really understand your question, but maybe this is the answer you are looking for: Hook into the
OnAuthenticate
Event:protected void login_Authenticate(object sender, AuthenticateEventArgs e)
from this method you can tell if the user was successful in authenticating. ie.e.Authenticated
-
I don't really understand your question, but maybe this is the answer you are looking for: Hook into the
OnAuthenticate
Event:protected void login_Authenticate(object sender, AuthenticateEventArgs e)
from this method you can tell if the user was successful in authenticating. ie.e.Authenticated
Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.
-
jason_mf wrote:
But I can't validate the PasswordAnswer was submited.
What do you mean? Do you mean that they can enter any password and it accepts it or if you enter the correct password it doesnt accept it?
We are not a Code Charity
Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.
-
Membership DataTable In aspnetdb DataBase. It has a IsLockedOut field. when user enter the wrong password too many times, IsLockedOut will be update to True(Lockout account).Now user login will faild, Regardless passwords right or wrong. Then, I want to offer user a wizard for unlock account(update IsLockedOut from true to false). So I need to compare the same as PasswordAnswer user submited and PasswordAnswer in DataBase. But Membership does not provide method for get PasswordAnswer. And PasswordAnswer is encrypted. How can I provide this wizard for unlock account.
check this out: http://msdn.microsoft.com/en-us/library/ms998347.aspx
We are not a Code Charity
-
check this out: http://msdn.microsoft.com/en-us/library/ms998347.aspx
We are not a Code Charity
*nods* - that would be my suggestion too.