diff --git a/openslides/participant/models.py b/openslides/participant/models.py index f82ce311a..228360604 100644 --- a/openslides/participant/models.py +++ b/openslides/participant/models.py @@ -40,7 +40,6 @@ class Profile(models.Model): def reset_password(self): self.user.set_password(self.firstpassword) - self.user.save() def __unicode__(self): if self.group: diff --git a/openslides/participant/views.py b/openslides/participant/views.py index d72c8e70e..b17c0900d 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -300,9 +300,8 @@ def reset_password(request, user_id): user = User.objects.get(pk=user_id) if request.method == 'POST': user.profile.reset_password() - user.profile.save() messages.success(request, _('The Password for %s was successfully reset.') % user) else: gen_confirm_form(request, _('Do you really want to reset the password for %s?') % user, - reverse('user_overview')) + reverse('user_reset_passwords', args=[user_id])) return redirect(reverse('user_edit', args=[user_id]))