Skip to content
Snippets Groups Projects
Commit 00882b3c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Prevent infinit password change by settin password_expires_at to nil

parent 46231f0f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,7 +19,8 @@ class PasswordsController < ApplicationController
)
 
if result
redirect_to root_path(notice: 'Password successfully changed')
@user.update_attributes(password_expires_at: nil)
redirect_to root_path, notice: 'Password successfully changed'
else
render :new
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment