diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-08 18:46:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-03-08 18:48:15 +0100 |
commit | f5796cb2bf4e3bbe3a71b9cdf9320aea690ddfd9 (patch) | |
tree | afb4925208a6ee8abc889d035ebd36ed39ca3128 /ishtar_common/views.py | |
parent | 4a1ebdc182c6e332fa46d47cea9ee6e3f8f9b646 (diff) | |
download | Ishtar-f5796cb2bf4e3bbe3a71b9cdf9320aea690ddfd9.tar.bz2 Ishtar-f5796cb2bf4e3bbe3a71b9cdf9320aea690ddfd9.zip |
UI: show/hide password on login
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py index f9f84b533..b6b58fe05 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -31,7 +31,7 @@ from django.apps import apps from django.conf import settings from django.contrib.auth import logout from django.contrib.auth.decorators import login_required -from django.contrib.auth.views import redirect_to_login +from django.contrib.auth.views import redirect_to_login, LoginView as AuthLoginView from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q @@ -167,6 +167,10 @@ def index(request): return render(request, "index.html", dct) +class LoginView(AuthLoginView): + form_class = forms.AuthenticationForm + + person_search_wizard = wizards.PersonSearch.as_view( [("general-person_search", forms.PersonFormSelection)], label=_("Person search"), |