Skip to content

Password Reset Configuration #187

Answered by janko
crespire asked this question in Q&A
Discussion options

You must be logged in to vote

If you're looking for something like the "paranoid" mode from Devise, Rodauth won't support this feature out-of-the-box, this discussion lays out some reasons. I've recently been investigating what would it take to support this in an external extension, but have come across some obstacles like what to do for accounts that don't have passwords set, so I let it go for now.

For reset password, the following configuration should work:

reset_password_email_sent_notice_flash "If this login has a password, we will send you a reset email"
reset_password_request_error_flash do
  if account
    super()
  else
    # don't reveal that the account with the given email didn't exist
    set_notice_flash r…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crespire
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants