From 60c7a1571bd55a0e8ca1227d103d1f68205a163e Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sat, 17 Sep 2022 22:48:21 +0300 Subject: [PATCH] fix identity --- auth/identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):