Added comment #70

This commit is contained in:
Sven Heidemann 2022-11-05 13:49:01 +01:00
parent 88f00c6046
commit e1304cc602

View File

@ -204,6 +204,7 @@ class AuthService(AuthServiceABC):
async def get_auth_user_by_email_async(self, email: str, with_password: bool = False) -> AuthUserDTO:
try:
# todo: check if logged in user is admin then send mail
user = self._auth_users.get_auth_user_by_email(email)
return AUT.to_dto(user, password=user.password if with_password else None)
except Exception as e: