fix User class
This commit is contained in:
parent
cb47e5b4eb
commit
ab7f2e99bc
@ -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"})
|
Loading…
x
Reference in New Issue
Block a user