Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,

i have requirement that when user reset his password with system generated password.
upon next login user should navigate to change password page.

could any one can help me to get this functionality ..??
Posted
Comments
OriginalGriff 25-Jun-15 4:58am    
And?
What have you tried?
Where are you stuck?
What help do you need?

1 solution

To generate randome password use-
System.Web.Security.Membership.GeneratePassword(int length, int numberOfNonAlphanumericCharacters)

You need a flag in database to identify whether the password is updated on reset or updated by user. This updation has to be performed at reset functionality.

Now, in login functionality check if user has logged in with pasword that has the reset flag then redirect to change password page.

Does this idea make any sense to you?

Hope, it helps :)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900