beat.web.ui.registration.apps module

beat.web.ui.registration.apps.monkey_patch_2fa_authentication_form()[source]

This methods monkey patches the list of forms used by the 2fa LoginView.

It replaces the standard form with a custom one that sends an email on successful login with an account that is blocked.

class beat.web.ui.registration.apps.UiRegistrationConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'beat.web.ui.registration'
verbose_name = 'Ui Registration'
ready()[source]

Override this method in subclasses to run code when Django starts.