diff --git a/src/api/customer.py b/src/api/customer.py index d01261d..e81e81a 100644 --- a/src/api/customer.py +++ b/src/api/customer.py @@ -25,7 +25,8 @@ response_model=OutDataSetPasswordSchema, ) async def create_password( - _: Depends(jwt_token_auth), password_data: InSetPasswordSchema + password_data: InSetPasswordSchema, + _=Depends(jwt_token_auth), ) -> OutDataSetPasswordSchema: async with async_session() as db: return await CustomerService.set_customer_password(db, password_data) @@ -48,7 +49,7 @@ async def login(login_data: InLoginSchema) -> OutDataLoginSchema: ) async def change_language( request_data: InChangePasswordSchema, - _client_verified: None = Depends(verify_client_version), + _client_verified: None = Depends(jwt_token_auth), ) -> OutDataChangePasswordSchema: async with async_session() as db: return await CustomerService.change_customer_language(db, request_data) diff --git a/tests/conftest.py b/tests/conftest.py index ec789d0..efc3bb5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -86,7 +86,7 @@ async def set_password_input( email: str, password: str, confirmed_password: str ) -> InSetPasswordSchema: set_password_input = InSetPasswordSchema( - email="osefhhchnsic@protonmail.com", + email=email, password=password, confirm_password=confirmed_password, )