resetting a password should not automatically log user in
npauzenga opened this issue · comments
Nate Pauzenga commented
def update
password_reset = UpdatePassword.call(user_params: user_params, user: @user)
if password_reset.success?
log_in(password_reset.user)
flash[:success] = "Password has been reset"
redirect_to sign_in_path
else
render "edit"
end
end