update kontor-api to reflect api changes

This commit is contained in:
Thomas Peetz
2026-04-15 14:38:38 +02:00
parent 62e22c56c4
commit a68dd05794
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ def get_current_user_from_token(token: str = Depends(oauth2_scheme)):
except JWTError:
raise credentials_exception
with SessionLocal() as db:
user = get_profile(username=username, db=db)
user = get_profile_by_email(email=username, db=db)
if user is None:
raise credentials_exception
return user