Skip to content

Commit bc79081

Browse files
Use _path instead of _url in auth session controller (rails#53718)
1 parent cafaea2 commit bc79081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

55
def new
66
end

0 commit comments

Comments
 (0)