Fixed: Not found or invalid authtoken

This commit is contained in:
Sepalani 2015-08-19 17:41:42 +02:00
parent e088954ef5
commit 35c253dc09

View File

@ -126,6 +126,12 @@ def parse_authtoken(authtoken, db):
def login_profile_via_parsed_authtoken(authtoken_parsed, db):
"""Return login profile via parsed authtoken.
authtoken_parsed MUST HAVE userid field and can't be None!
"""
if authtoken_parsed is None or 'userid' not in authtoken_parsed:
return None, None, None, None
console = 0
userid = authtoken_parsed['userid']