allow generated password for new osusers

- change osusers.admin.UserCreationForm to allow empty password input which
  triggers the creation of a new password
This commit is contained in:
Jan Dittberner 2014-12-27 18:26:52 +01:00
parent 048589b806
commit 39fd326ac2
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,10 @@
Changelog Changelog
========= =========
* :feature:`-` allow empty password input in
:py:class:`osusers.admin.UserCreationForm` to allow generated passwords for
new users
* :release:`0.3.0 <2014-12-27>` * :release:`0.3.0 <2014-12-27>`
* :feature:`-` call create/delete mailbox tasks when saving/deleting mailboxes * :feature:`-` call create/delete mailbox tasks when saving/deleting mailboxes
* :support:`-` use celery routers from gvacommon * :support:`-` use celery routers from gvacommon

View file

@ -27,10 +27,14 @@ class UserCreationForm(forms.ModelForm):
A form for creating system users. A form for creating system users.
""" """
password1 = forms.CharField(label=_('Password'), password1 = forms.CharField(
widget=forms.PasswordInput) label=_('Password'), widget=forms.PasswordInput,
password2 = forms.CharField(label=_('Password (again)'), required=False,
widget=forms.PasswordInput) )
password2 = forms.CharField(
label=_('Password (again)'), widget=forms.PasswordInput,
required=False,
)
class Meta: class Meta:
model = User model = User