-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password reset allows user to bypass confirmable #590
Comments
Why would you? There is no security issure there. If the user can change the password then he can access his email account and that means that he is able to confirm the account. |
But the email is passed as a parameter for reset; it could be different On Thu, Mar 31, 2016 at 4:07 PM Carsten [email protected] wrote:
|
Also, the comment seems to communicate the correct intention but the code actually does the opposite. |
But in which case the email for password resetting is different than the user id? |
Seems like a nonissue from the discussion so far, so I'm closing for now. |
In passwords_controller.rb, the following code:
actually sets the confirmed_at property of a resource if the resource has not been confirmed.
This effectively allows the user to bypass email confirmation by resetting their password.
I'd like to remove this line, so that the user IS able to change their password with the reset link but will not be able to log in until they confirm the email.
Thoughts?
The text was updated successfully, but these errors were encountered: