For real this time, it really works

This commit is contained in:
lvrossem
2023-03-28 13:41:58 -06:00
parent b7f41e8596
commit 5eba17f793
3 changed files with 8 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ def get_users(db: Session):
def create_user(db: Session, user: schemas.users.UserCreate):
db_user = models.User(username=user.username, hashed_password=user.hashed_password)
db_user = models.User(username=user.username, hashed_password=user.password)
db.add(db_user)
db.commit()
db.refresh(db_user)