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