forked from sh-edraft.de/sh_discord_bot
Added comment #70
This commit is contained in:
parent
88f00c6046
commit
e1304cc602
@ -204,6 +204,7 @@ class AuthService(AuthServiceABC):
|
|||||||
|
|
||||||
async def get_auth_user_by_email_async(self, email: str, with_password: bool = False) -> AuthUserDTO:
|
async def get_auth_user_by_email_async(self, email: str, with_password: bool = False) -> AuthUserDTO:
|
||||||
try:
|
try:
|
||||||
|
# todo: check if logged in user is admin then send mail
|
||||||
user = self._auth_users.get_auth_user_by_email(email)
|
user = self._auth_users.get_auth_user_by_email(email)
|
||||||
return AUT.to_dto(user, password=user.password if with_password else None)
|
return AUT.to_dto(user, password=user.password if with_password else None)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user