diff --git a/auth/identity.py b/auth/identity.py index d76ef160..f6310469 100644 --- a/auth/identity.py +++ b/auth/identity.py @@ -24,7 +24,7 @@ class Password: class Identity: @staticmethod def password(orm_user: User, password: str) -> User: - user = AuthInput(**orm_user.dict()) + user = User(**orm_user.dict()) if not user.password: raise InvalidPassword("User password is empty") if not Password.verify(password, user.password):