mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
logged in requests were being treated as anon, causing major havoc
This commit is contained in:
@@ -73,7 +73,7 @@ class Auth::DefaultCurrentUserProvider
|
||||
|
||||
def has_auth_cookie?
|
||||
request = Rack::Request.new(@env)
|
||||
cookie = request.cookies[CURRENT_USER_KEY]
|
||||
cookie = request.cookies[TOKEN_COOKIE]
|
||||
!cookie.nil? && cookie.length == 32
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user