Automated merge with ssh://openslides.org/openslides
This commit is contained in:
commit
1b81cfee27
@ -39,6 +39,7 @@ class Profile(models.Model):
|
|||||||
|
|
||||||
def reset_password(self):
|
def reset_password(self):
|
||||||
self.user.set_password(self.firstpassword)
|
self.user.set_password(self.firstpassword)
|
||||||
|
self.user.save()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
if self.group:
|
if self.group:
|
||||||
|
@ -20,6 +20,7 @@ from django.contrib.auth.forms import SetPasswordForm
|
|||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
|
|
||||||
from participant.models import Profile, set_first_user_passwords
|
from participant.models import Profile, set_first_user_passwords
|
||||||
from participant.api import gen_username
|
from participant.api import gen_username
|
||||||
from participant.forms import UserForm, UsernameForm, ProfileForm, UsersettingsForm, UserImportForm, GroupForm, AdminPasswordChangeForm
|
from participant.forms import UserForm, UsernameForm, ProfileForm, UsersettingsForm, UserImportForm, GroupForm, AdminPasswordChangeForm
|
||||||
|
Loading…
Reference in New Issue
Block a user