beat.web.ui.registration.apps.
monkey_patch_2fa_authentication_form
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.
UiRegistrationConfig
Bases: django.apps.config.AppConfig
django.apps.config.AppConfig
name
verbose_name
ready
Override this method in subclasses to run code when Django starts.