mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-07-18 16:21:34 -05:00
Fixed: Not found or invalid authtoken
This commit is contained in:
parent
e088954ef5
commit
35c253dc09
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user