diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-04 11:26:50 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-04 11:26:50 +0100 |
commit | b61c34235450154882d271ffb566db677170bbf8 (patch) | |
tree | f589f0228033284517a56e8f580ff3d36fb7bdb0 | |
parent | febbea7a9421766310758318684577c2eb241636 (diff) | |
download | bank-b61c34235450154882d271ffb566db677170bbf8.tar.gz bank-b61c34235450154882d271ffb566db677170bbf8.tar.bz2 bank-b61c34235450154882d271ffb566db677170bbf8.zip |
better class name
-rw-r--r-- | talerbank/app/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 00d3cc4..6383a68 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -60,7 +60,7 @@ class RejectNoRightsException(Exception): "no rights to reject." http_status_code = 403 -class MyAuthenticationForm( +class TalerAuthenticationForm( django.contrib.auth.forms.AuthenticationForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -76,7 +76,7 @@ def login_view(request): fail_message, success_message, hint = get_session_hint(request, "login_hint") response = django.contrib.auth.views.login( request, - authentication_form=MyAuthenticationForm, + authentication_form=TalerAuthenticationForm, template_name="login.html", extra_context={"user": request.user}) if hasattr(response, "context_data"): |