I am trying to create a simple web page that uses SHA1-encrypted Forms authentication. However, I cannot get it to work.
<user name="user" password="hashedpwd"/>
string userName = Login1.UserName;
string password = Login1.Password;
string hashpwd = FormsAuthentication.HashPasswordForStoringInConfigFile(password, "sha1");
e.Authenticated = FormsAuthentication.Authenticate(userName, hashpwd);
When I try to login, it says the login was unsuccessful, but I have properly compared the hashed code entered in web.config and hashpwd.
Can anybody assist with this?