忘记密码:实现忘记密码功能的最佳方法是什么? [英] Forgot Password: what is the best method of implementing a forgot password function?

查看:47
本文介绍了忘记密码:实现忘记密码功能的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在网站上创建忘记密码功能的最佳方法是什么.我在那里见过很多,这里有一些或组合:

I'm wondering what the best method is for creating a forgot password function on a website. I have seen quite a few out there, here are a few or combination of:

  • 密码问题/答案(1 个或多个)
  • 使用新密码发送电子邮件
  • 在屏幕上输入新密码
  • 通过电子邮件确认:必须点击链接以获取新密码
  • 要求用户输入新密码的页面

您会为忘记密码功能添加哪些组合或附加步骤?我想知道他们如何请求新密码以及他们最终如何获得它.

What combination or additional steps would you add to a forgot password function? I'm wondering about how they request the new password and how they end up getting it.

我正在操作无法检索密码的主体;必须提供/生成新密码.

I'm operating on the principal that the password cannot be retrieved; a new password must be given/generated.

编辑 我喜欢 Cory 所说的关于如果用户名存在则不显示的内容,但我想知道该显示什么.我在想一半的问题是用户忘记了他们使用的电子邮件地址,显示某种不存在"的消息很有用.有什么解决办法吗?

Edit I like what Cory said about not displaying if the username exists, but I'm wondering what to display instead. I'm thinking half the problem is that the user forgot which email address they used, which displaying some sort of "does not exist" message is useful. Any solutions?

推荐答案

  1. 我个人会发送一封电子邮件,其中包含指向短期页面的链接,以便他们设置新密码.将页面名称设为某种 UID.
  2. 如果这对您没有吸引力,那么也可以向他们发送新密码并强制他们在首次访问时更改密码.

选项 1 要容易得多.

Option 1 is far easier.

这篇关于忘记密码:实现忘记密码功能的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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