From 7ff89b66679e53082b6e9181fbd2ec9db8c279ac Mon Sep 17 00:00:00 2001 From: RaisSabeAndrade Date: Sun, 10 Dec 2023 18:16:49 -0300 Subject: [PATCH] =?UTF-8?q?Coment=C3=A1rios=20de=20authController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/authController.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/authController.py b/src/controller/authController.py index 16c59db..fa5073a 100644 --- a/src/controller/authController.py +++ b/src/controller/authController.py @@ -47,6 +47,7 @@ async def register(data: authSchema.UserCreate, db: Session = Depends(get_db)): return JSONResponse(status_code=201, content={ "status": "success" }) + # Recebe os dados de login @auth.post("/login", response_model=authSchema.Token) async def login(data: authSchema.UserLogin, db: Session = Depends(get_db)): user = userRepository.get_user_by_email(db, data.email) @@ -144,6 +145,7 @@ async def verify_reset_code(data: authSchema.ResetPasswordVerify, db: Session = return JSONResponse(status_code=200, content={ "status": "success" }) + # Atualizar senha de um usuário após uma solicitação de redefinição @auth.patch('/reset-password/change', response_model=userSchema.User) async def update_user_password(data: authSchema.ResetPasswordUpdate, db: Session = Depends(get_db)): user = userRepository.get_user_by_email(db, data.email)