Skip to content

Commit ed553cc

Browse files
committed
Logging out requires current session to be loaded
Closes rails#52369. Co-authored-by: yshmarov
1 parent fb46bd0 commit ed553cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/authentication/templates/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class SessionsController < ApplicationController
2-
allow_unauthenticated_access
2+
allow_unauthenticated_access only: %i[ new create ]
33
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_session_url, alert: "Try again later." }
44

55
def new

0 commit comments

Comments
 (0)