如何编写忘记密码的编码? [英] How to write coding for forgot password?

查看:186
本文介绍了如何编写忘记密码的编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我快速答复.我急需它.

please give me quick reply.i need it urgently.

推荐答案

您需要提供更多信息...它是什么类型的应用程序?您正在执行的授权.您要保存密码或它们的哈希值吗? etcetc
you need to provide some more info... what kind of application is it, what kind of authorization you are doing. Are you saving password or their hashes? etcetc


假设您可以根据用户名检索密码.将在使用该用户名注册的电子邮件中发送密码.
当按下忘记密码"时,您的UI必须采取类似的操作,要求输入用户名.提供用户名后,检查它是否存在.如果是这样,请检索密码并发送到针对该密码注册的电子邮件.刷新一条消息,说明您已执行此操作.
如何在邮件中发送忘记密码" [
Lets say you can retrieve password based on username. Will send password in an email registered with that username.
Your UI must act something like, when ''Forget password'' pressed ask for the username. When username supplied, check if it exists. If so, retrieve the password and send across to the email registered against it. Flash a message that you did this.
How to sent Forgot Password in Mail[^]


This was simple one, you can ask for new passwords, etc - it depends on the complexity/security you prefer for your website.


这篇关于如何编写忘记密码的编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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