重置密码后,用户应在登录时导航以更改密码页面 [英] user should navigate to change password page upon login after password is reset

查看:97
本文介绍了重置密码后,用户应在登录时导航以更改密码页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i要求当用户使用系统生成的密码重置密码时。

下次登录时,用户应导航到更改密码页。



任何人都可以帮助我获得这个功能.. ??

解决方案

要生成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 :)


这篇关于重置密码后,用户应在登录时导航以更改密码页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆