File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/generators/authentication/templates/controllers/html/sessions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ class Sessions::PasswordlessesController < ApplicationController
1313 session_record = @user.sessions.create!
1414 cookies.signed.permanent[:session_token] = { value: session_record.id, httponly: true }
1515
16- revoke_tokens; redirect_to(root_path, notice: "Signed in successfully")
16+ revoke_sign_in_tokens
17+ redirect_to(root_path, notice: "Signed in successfully")
1718 end
1819
1920 def create
@@ -36,7 +37,7 @@ class Sessions::PasswordlessesController < ApplicationController
3637 UserMailer.with(user: @user).passwordless.deliver_later
3738 end
3839
39- def revoke_tokens
40+ def revoke_sign_in_tokens
4041 @user.sign_in_tokens.delete_all
4142 end
4243end
You can’t perform that action at this time.
0 commit comments