Skip to content

Commit

Permalink
Return 422 when password reset token has expired
Browse files Browse the repository at this point in the history
  • Loading branch information
baarkerlounger authored and ghiculescu committed Feb 3, 2022
1 parent 91b3494 commit eef20a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def update
respond_with resource, location: after_resetting_password_path_for(resource)
else
set_minimum_password_length
respond_with resource
respond_with resource, status: :unprocessable_entity
end
end

Expand Down

0 comments on commit eef20a3

Please sign in to comment.