mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 06:51:28 +00:00
fix
This commit is contained in:
parent
66a2bc8a0c
commit
db91a60938
|
@ -24,6 +24,6 @@ class IsAuthenticated(BasePermission):
|
||||||
print("Printing connection params from the ws connect!")
|
print("Printing connection params from the ws connect!")
|
||||||
print(connection_params)
|
print(connection_params)
|
||||||
token = connection_params.get("Authorization")
|
token = connection_params.get("Authorization")
|
||||||
if token in None:
|
if token is None:
|
||||||
return False
|
return False
|
||||||
return is_token_valid(token.replace("Bearer ", ""))
|
return is_token_valid(token.replace("Bearer ", ""))
|
||||||
|
|
Loading…
Reference in a new issue