ryanckulp / speedrail

Rails 7 app template: Devise auth, Stripe billing, Tailwind CSS, admin panel, SEO helpers, etc
https://founderhacker.com/24-hour-mvp
MIT License
228 stars 29 forks source link

Set Devise to use "Paranoid" mode #90

Closed BSierakowski closed 11 months ago

BSierakowski commented 11 months ago

Setting Devise to use "paranoid" mode prevents the library from enumerating users.

Prior to enabling paranoid mode a malicious user could use the "forgot password" page to fish for user emails. With paranoid mode off, entering an email of a user who does not exists returns a form validation error (Email not found,) but works for an email in the system.

With this setting set to true we'll ALWAYS make it seem that a forgot password emails is sent, limiting the amount of private date we expose to the end user.

In development letter_opener will still pop open a new tab so we'll know if password resets are behaving as they should.