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:
parent
048589b806
commit
39fd326ac2
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue