fix User class

This commit is contained in:
Valentin CZERYBA 2023-10-14 22:31:01 +02:00
parent cb47e5b4eb
commit ab7f2e99bc

View File

@ -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"})