Self hosted FLOSS fitness/workout, nutrition and weight tracker
Redirect users to login after resetting their passwords
Roland Geider0ff80c1d2e57
diff --git a/docs/changelog.rst b/docs/changelog.rstindex d0d1dd6c8..f058794ba 100644--- a/docs/changelog.rst+++ b/docs/changelog.rst@@ -34,8 +34,8 @@ Upgrade steps from 1.9:🐛 Bug Fixes:-* `#499`_, `#505`_, `#504`_, `#511`_, `#516`_, `#522`_, `#554`_- and `#560`_ (thanks `@sandilsranasinghe`_), `#426`_ (thanks `@austin-leung`_),+* `#426`_ (thanks `@austin-leung`_), `#499`_, `#505`_, `#504`_, `#511`_, `#516`_,+ `#522`_, `#554`_ and `#560`_ (thanks `@sandilsranasinghe`_), `#564`_🧰 Maintenance:@@ -80,6 +80,7 @@ Upgrade steps from 1.9:.. _#554: https://github.com/wger-project/wger/issues/554.. _#555: https://github.com/wger-project/wger/issues/555.. _#560: https://github.com/wger-project/wger/issues/560+.. _#564: https://github.com/wger-project/wger/issues/564diff --git a/wger/core/views/user.py b/wger/core/views/user.pyindex 108b0b3fa..a233871cc 100644--- a/wger/core/views/user.py+++ b/wger/core/views/user.py@@ -591,6 +591,7 @@ class WgerPasswordResetView(PasswordResetView):class WgerPasswordResetConfirmView(PasswordResetConfirmView):template_name = 'form.html'+ success_url = reverse_lazy('core:user:login')def get_form(self, form_class=None):form = super(WgerPasswordResetConfirmView, self).get_form(form_class)