Skip to content

Commit

Permalink
Use _path instead of _url in auth session controller (rails#53718)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedalbert authored Nov 22, 2024
1 parent cafaea2 commit bc79081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class SessionsController < ApplicationController
allow_unauthenticated_access only: %i[ new create ]
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_session_url, alert: "Try again later." }
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_session_path, alert: "Try again later." }

def new
end
Expand Down

0 comments on commit bc79081

Please sign in to comment.