From ab7f2e99bc2f55997f2f639ca7b3abb4dd7d9c33 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 14 Oct 2023 22:31:01 +0200 Subject: [PATCH] fix User class --- app/routers/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routers/users.py b/app/routers/users.py index 2f38da9..265d4b9 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -113,6 +113,6 @@ async def read_users_me(userSingle: users.UserCreate | None = None): detail="Body request is empty" ) user_repository = users.UserRepository(database=database.database) - current_user = users.Users(username=userSingle.username, password=user_token.get_password_hash(userSingle.password)) + current_user = users.User(username=userSingle.username, password=user_token.get_password_hash(userSingle.password)) user_repository.save(current_user) - return current_user + return JSONResponse(status_code=200, content={"message": "email has been sent"}) \ No newline at end of file