We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffc8c47 commit 976e518Copy full SHA for 976e518
railties/lib/rails/generators/rails/authentication/templates/app/controllers/passwords_controller.rb.tt
@@ -19,6 +19,7 @@ class PasswordsController < ApplicationController
19
20
def update
21
if @user.update(params.permit(:password, :password_confirmation))
22
+ @user.sessions.destroy_all
23
redirect_to new_session_path, notice: "Password has been reset."
24
else
25
redirect_to edit_password_path(params[:token]), alert: "Passwords did not match."
0 commit comments