cri_auth.views module
- class cri_auth.views.CRILoginView(**kwargs)[source]
Bases:
cri_auth.kerberos.spnego.views.SPNEGOMixin
,django.contrib.auth.views.LoginView
- form_class
alias of
cri_auth.forms.LoginForm
- get(request, *args, **kwargs)[source]
Handle GET requests: instantiate a blank version of the form.
- post(request, *args, **kwargs)[source]
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- template_name = 'cri_auth/login.html'
- class cri_auth.views.CRIPasswordChangeView(**kwargs)[source]
Bases:
django.contrib.auth.views.PasswordChangeView
- BACKEND_FORM_CLASS_OVERRIDES = {'cri_auth.backends.CRIAzureADOauth2': <class 'django.contrib.auth.forms.SetPasswordForm'>}
- template_name = 'cri_auth/password_change.html'