This commit is contained in:
pablodanswer 2024-12-28 17:31:13 -05:00
parent 9ce2c6c517
commit 8d6e8269b7

View File

@ -252,6 +252,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]):
if not user.role.is_web_login() and user_create.role.is_web_login():
user_update = UserUpdateWithRoleForManager(
password=user_create.password,
role=user_create.role,
is_verified=user_create.is_verified,
)
user = await self.update(user_update, user)