Commits

offline  committed f08b457

redirect user to change password page

  • Participants
  • Parent commits 1957672

Comments (0)

Files changed (1)

File openauth/views.py

         form = ResetPasswordForm(request.POST)
         if form.is_valid():
             user = User.objects.get(email=form.cleaned_data['email'].lower())
-            confirmation = Confirmation.objects.create(user, openauth.settings.PASSWORD_RESET_TYPE)
+            confirmation = Confirmation.objects.create(user, openauth.settings.PASSWORD_RESET_TYPE, redirect_url=reverse("openauth-change-password"))
             args = {'domain': request.get_host(), 'url': confirmation.get_url(request)}
             if email_template(user.email, 'openauth/mail/reset_password.txt', **args):
                 return notify_user.notice(request, "/",  _('Check your email please'))