Skip to content
Snippets Groups Projects
Commit c05b94d0 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIXUP

parent 600187e6
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class Mgr(BaseModel):
@staticmethod
def check_token(conn, token: str | APIToken):
cursor = get_cursor(conn)
with conn.transaction() as t:
with conn.transaction():
if isinstance(token, APIToken):
token = token.token
cursor.execute("select * from cntl.validate_jwt(in_token:=%(token)s)", {'token': token})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment