Skip to content

Commit f9d0459

Browse files
committed
cosmetic
1 parent 49fcbd6 commit f9d0459

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/generators/authentication/templates/controllers/html/sessions/passwordlesses_controller.rb.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
4243
end

0 commit comments

Comments
 (0)