def _registered(user, identity, from_moderation, **kwargs): from indico.modules.users.util import get_admin_emails if (from_moderation or identity is None or identity.provider != 'indico' or not user_management_settings.get('notify_account_creation')): return tpl = get_template_module('users/emails/profile_registered_admins.txt', user=user) send_email(make_email(get_admin_emails(), template=tpl))
def _registration_requested(req, **kwargs): from indico.modules.users.util import get_admin_emails tpl = get_template_module('users/emails/profile_requested_admins.txt', req=req) send_email(make_email(get_admin_emails(), template=tpl))