Sync fastapi docs from 50fa3f7c on 2026-01-11
This commit is contained in:
@@ -28,7 +28,7 @@ def fake_password_hasher(raw_password: str):
|
||||
|
||||
def fake_save_user(user_in: UserIn):
|
||||
hashed_password = fake_password_hasher(user_in.password)
|
||||
user_in_db = UserInDB(**user_in.dict(), hashed_password=hashed_password)
|
||||
user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password)
|
||||
print("User saved! ..not really")
|
||||
return user_in_db
|
||||
|
||||
|
||||
Reference in New Issue
Block a user