Clean up
This commit is contained in:
parent
3930982bd8
commit
ad7968dadd
53 changed files with 564 additions and 1013 deletions
|
|
@ -39,6 +39,7 @@ def get_current_user(request: Request) -> str:
|
|||
u = uuid.UUID(token)
|
||||
if u.version != 4:
|
||||
raise ValueError("Not v4")
|
||||
token = str(u)
|
||||
except (ValueError, AttributeError):
|
||||
raise _unauthorized()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue