From 2de45d030e33a55e47dd4943eb8f8c3c54997231 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 2 Nov 2021 09:51:54 +0100 Subject: [PATCH] forward to home when login after password reset --- .../templates/registration/password_reset_complete.html | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basetheme_bootstrap/templates/registration/password_reset_complete.html b/basetheme_bootstrap/templates/registration/password_reset_complete.html index 52a69a9..6468c0b 100644 --- a/basetheme_bootstrap/templates/registration/password_reset_complete.html +++ b/basetheme_bootstrap/templates/registration/password_reset_complete.html @@ -5,5 +5,5 @@ {% block page_title %}{{ title }}{% endblock %} {% block sub_message%} {% trans "Your password has been set. You may go ahead and log in now." %} -<a href="{{ login_url }}">{% trans 'Log in' %}</a> +<a href="{{ login_url }}?next={%url 'home'%}">{% trans 'Log in' %}</a> {% endblock %} \ No newline at end of file diff --git a/setup.py b/setup.py index cbd5ad3..b28b2b7 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='0.2.69', + version='0.2.70', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab