BigW Consortium Gitlab

Commit 00882b3c by Dmitriy Zaporozhets

Prevent infinit password change by settin password_expires_at to nil

parent 46231f0f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment