mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-06 03:01:21 -04:00
Recoverable class method reset_password should use a bang!
This commit is contained in:
@@ -20,7 +20,7 @@ class PasswordsController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
@password = User.reset_password(params[:password])
|
||||
@password = User.reset_password!(params[:password])
|
||||
if @password.errors.empty?
|
||||
flash[:notice] = 'Your password was changed successfully.'
|
||||
redirect_to new_session_path
|
||||
|
||||
Reference in New Issue
Block a user