为什么Laravel会在数据库中放置密码重置链接?

发布于 2025-02-01 14:31:49 字数 513 浏览 4 评论 0原文

我是Laravel的新手。因此,我试图用Breeze来理解密码重置系统,我单击电子邮件链接后被带到此页面,我注意到此参数

最终也绊倒了password_resets表中的参数的散列版本

我知道这是出于安全原因,但是我认为在您进行哈希之后,令牌是完全没有用的,因为您不能“不满”它,为什么要这样做?

I'm completely new to laravel. So I'm trying to understand password reset system with breeze I was taken to this page after I click on an email link and I noticed this parameter
enter image description here

also ended up stumbling on probably the hashed version of the parameter inside the password_resets table
enter image description here

I get that this is for security reasons but I thought that token is completely useless after you hashed it cause you can't "unhashed" it, why would you do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

☆獨立☆ 2025-02-08 14:31:49

它生成此散布的字符串,以确保您拥有电子邮件,并且此后不会重复使用它,因为这足以让您设置一个新密码。您请求重置密码链接,然后单击链接(因此您访问收件箱消息),仅此而已;是你!

It generates this hashed string to make sure that you're who owned the email and it doesn't reuse it afterward, because that's enough to let you set a new password. You requested for a reset password link, and you clicked on the link (so you access inbox messages) and that's it; It's you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文