From d54c5a5cf9020d6a0b61a477492d1a0fe9f313a8 Mon Sep 17 00:00:00 2001 From: tanshu Date: Fri, 2 Apr 2021 18:43:17 +0530 Subject: [PATCH] Fix: Users could not be added as password was not supplied in the BlankUser schema and it gave an error --- brewman/brewman/routers/auth/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/brewman/brewman/routers/auth/user.py b/brewman/brewman/routers/auth/user.py index d9185707..83284d8a 100644 --- a/brewman/brewman/routers/auth/user.py +++ b/brewman/brewman/routers/auth/user.py @@ -212,6 +212,7 @@ def user_info(item: User, db: Session, user: UserToken) -> schemas.User: def user_blank(db: Session) -> schemas.UserBlank: return schemas.UserBlank( name="", + password="", lockedOut=False, roles=[schemas.RoleItem(id=r.id, name=r.name, enabled=False) for r in db.query(Role).order_by(Role.name).all()], )