From 150152ddbdb50b93ee2510451d5a46f6aca22aab Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Fri, 29 Mar 2024 21:04:30 +0000 Subject: [PATCH] fix: accidental indent during format changed logic --- backend/apps/web/routers/auths.py | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/backend/apps/web/routers/auths.py b/backend/apps/web/routers/auths.py index 131570f9b..e938a58f5 100644 --- a/backend/apps/web/routers/auths.py +++ b/backend/apps/web/routers/auths.py @@ -117,23 +117,23 @@ async def signin(request: Request, form_data: SigninForm): else: user = Auths.authenticate_user(form_data.email.lower(), form_data.password) - if user: - token = create_token( - data={"id": user.id}, - expires_delta=parse_duration(request.app.state.JWT_EXPIRES_IN), - ) + if user: + token = create_token( + data={"id": user.id}, + expires_delta=parse_duration(request.app.state.JWT_EXPIRES_IN), + ) - return { - "token": token, - "token_type": "Bearer", - "id": user.id, - "email": user.email, - "name": user.name, - "role": user.role, - "profile_image_url": user.profile_image_url, - } - else: - raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED) + return { + "token": token, + "token_type": "Bearer", + "id": user.id, + "email": user.email, + "name": user.name, + "role": user.role, + "profile_image_url": user.profile_image_url, + } + else: + raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED) ############################