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

编程入门 行业动态 更新时间:2024-10-28 16:29:34
本文介绍了重置密码后,用户应在登录时导航以更改密码页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

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

本文发布于:2023-07-14 17:48:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1106038.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码   应在   页面   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!