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
=========
* :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>`
* :feature:`-` call create/delete mailbox tasks when saving/deleting mailboxes
* :support:`-` use celery routers from gvacommon

View file

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