logged in requests were being treated as anon, causing major havoc

This commit is contained in:
Sam
2013-10-17 10:37:18 +11:00
parent 85387b8f72
commit 1b81f73325
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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