forked from sh-edraft.de/sh_discord_bot
		
	Added comment #70
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user