From fdc84c5cf76dd1c496dedca2b2fefc728ba00df9 Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 23 Aug 2023 16:50:31 +0200 Subject: [PATCH] enabled user field fixed --- backend/utils/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/oauth.py b/backend/utils/oauth.py index 8eccbcc7a..b4a371d7a 100644 --- a/backend/utils/oauth.py +++ b/backend/utils/oauth.py @@ -68,7 +68,7 @@ async def get_current_active_user_from_token(token: str): if user is None: raise credentials_exception - if user.disabled: + if not user.enabled: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Inactive user" )