mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Delete the invalid auth cookie even if you hit the rate limit
This commit is contained in:
@ -159,6 +159,10 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
rescue_from Discourse::InvalidAccess do |e|
|
||||
|
||||
if e.opts[:delete_cookie].present?
|
||||
cookies.delete(e.opts[:delete_cookie])
|
||||
end
|
||||
rescue_discourse_actions(
|
||||
:invalid_access,
|
||||
403,
|
||||
|
Reference in New Issue
Block a user