且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重置密码后,用户应在登录时导航以更改密码页面

更新时间:2023-09-28 14:58:52

要生成randome密码,请使用

系统。 Web.Security.Membership.GeneratePassword(int length,int numberOfNonAlphanumericCharacters)



您需要在数据库中使用一个标志来确定密码是否在重置时更新或由用户更新。此更新必须在重置功能时执行。



现在,在登录功能中检查用户是否使用具有重置标志的pasword登录,然后重定向到更改密码页面。



这个想法对你有意义吗?



希望,它会有所帮助:)

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 ..??

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 :)