[acls] Fix wrong key in payload for decoded JWT.
This commit is contained in:
parent
333aca9e2c
commit
abfaf2e1ea
|
@ -118,7 +118,7 @@ class JWTAuthenticationBackend(AuthenticationBackend):
|
||||||
|
|
||||||
|
|
||||||
return AuthCredentials(["authenticated"]), JWTUser(
|
return AuthCredentials(["authenticated"]), JWTUser(
|
||||||
id=payload['id'], token=token, payload=payload)
|
id=payload['user_id'], token=token, payload=payload)
|
||||||
|
|
||||||
|
|
||||||
class JWTWebSocketAuthenticationBackend(AuthenticationBackend):
|
class JWTWebSocketAuthenticationBackend(AuthenticationBackend):
|
||||||
|
|
Loading…
Reference in New Issue