update kontor-api to reflect api changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user