Author: Azwarian | Posted on: 7/17/2008 4:37:53 PM | Views : 313

 Hi,
 I have created a forgot password feature that uses the Membership.ChangePassword to reset the password for a user.
It appears to work and change the password, but when I try to login with either the new or old password it doesnt work.
I am using the following code: 

Dim user As MembershipUser = Membership.GetUser(txtUserName.Text)

If Not user Is Nothing Then
Dim NewPassword As String = Left(Guid.NewGuid.ToString, 8)

If user.ChangePassword(user.ResetPassword, NewPassword) Then

Response.Write(NewPassword)

End If

End If Also, when I investigate the aspnet_Membership table, the Password column value changes when t ...

Go to the complete details ...