mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
recover from bad CSRF tokens without requiring a hard refresh of the browser
This commit is contained in:
@ -67,7 +67,7 @@ class SessionController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
session[:current_user_id] = nil
|
||||
reset_session
|
||||
cookies[:_t] = nil
|
||||
render nothing: true
|
||||
end
|
||||
|
Reference in New Issue
Block a user