misc: redirect user to homepage after password reset (#33611)

This commit is contained in:
Frédéric Péters 2019-06-03 10:45:53 +02:00
parent bedcbc5a4c
commit b960e14fed
1 changed files with 1 additions and 0 deletions

View File

@ -634,6 +634,7 @@ class PasswordResetView(cbv.NextURLViewMixin, FormView):
'''Ask for an email and send a password reset link by mail'''
form_class = passwords_forms.PasswordResetForm
title = _('Password Reset')
next_url_default = '/'
def get_template_names(self):
return [