Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将类型设置为散列似乎不允许 enablePasswordRetrieval。如果用户忘记了密码怎么办?
当散列密码丢失时,唯一的选择是创建一个新密码。由用户或管理员 (-tool)。
一种常见的做法是发送一个指向安全页面的链接,用户可以在其中输入新密码。
散列不可逆到它们的原始形式,这就是密码恢复不可能的原因。如果这是一项要求,您将需要改用加密。为此,请更改passwordFormat="Hashed"为passwordFormat="Encrypted"
passwordFormat="Hashed"
passwordFormat="Encrypted"