Beispiel #1
0
from mieli import registry
from identity import helpers

registry.add_filter('registration_form', helpers.set_extra_fields)
registry.add_hook('registration_clean', helpers.clean_extra_fields)
Beispiel #2
0
from mieli import registry
from mieli.api import user, nexus

registry.add_hook('organization_delete', user.on_organization_deletion)
registry.add_hook('organization_create', nexus.on_organization_creation)
registry.add_hook('user_approval', nexus.auto_join, priority=99)
registry.add_hook('user_approval', user.send_approve_email, priority=999)
# TODO user_delete