[英]How to Email user new link to create a password
According to this other post, I need to: 根据这篇文章,我需要:
PHP password recovery You don't 'recover' passwords. PHP密码恢复您没有“恢复”密码。 What you do is one of 2 things.
你做的是两件事之一。
I've bitten off a huge project, and I desperately request working examples, or at least your best advice on how to do this; 我已经咬了一个大项目,我拼命地请求工作实例,或者至少是你如何做到最好的建议; for ex: #1 email user link to create a new password, overriding the current one.
例如:#1电子邮件用户链接以创建新密码,覆盖当前密码。 I am told the db has password salting, and uses Blowfish.
我被告知db有密码salting,并使用Blowfish。 I really do not know exactly what that means, and I am going over the code to try to figure out how to add a "Reset Password?"
我真的不知道究竟是什么意思,我正在查看代码以试图找出如何添加“重置密码?” link to their current login page.
链接到他们当前的登录页面。
Then, if you are so inclined, could you assist with how to email the user a randomly generated pw, then as them to change it [#2 above? 然后,如果您如此倾向,您是否可以协助如何通过电子邮件向用户发送随机生成的pw,然后将其更改为[上面的#2?
The tasks are as-is and I don't know what code to provide so far; 任务是按原样的,我不知道到目前为止提供什么代码; I'm hoping someone who has done this can show me what works, and I will try to implement it.
我希望有人这样做可以告诉我什么有用,我会尝试实现它。 I appreciate your help!
我感谢您的帮助!
The usual way to generate password resets looks like this: 生成密码重置的常用方法如下所示:
I hope this could give you an idea of the necessary steps. 我希望这可以让你了解必要的步骤。 If you want to learn more about BCrypt and salting, you can have a look at this tutorial about hashing passwords.
如果您想了解有关BCrypt和salting的更多信息,可以查看本教程中有关散列密码的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.