open-duelyst/duelyst

[P2] Add password reset tokens

開放

#152 建立於 2022年10月16日

 (1 則留言) (1 個反應) (0 位負責人)JavaScript (526 個分叉)batch import
backendenhancementhelp wanted

倉庫指標

星標
 (3,443 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Summary

Since we removed email-based forgot password flows (see git log for original code), we should add an alternative system for password resets. One way to do this is with "recovery tokens", as seen on sites with MFA flows. We could give a user one recovery token which can be used to validate a one-time password reset, which then grants a new recovery token. These could be stored as (user_id, token) in a new Postgres table, and can be deleted after successful use.

貢獻者指南