summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/admin/users/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/admin/users/forms.py')
-rw-r--r--openstack_dashboard/dashboards/admin/users/forms.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/openstack_dashboard/dashboards/admin/users/forms.py b/openstack_dashboard/dashboards/admin/users/forms.py
index e4ba02b0..c0039a3c 100644
--- a/openstack_dashboard/dashboards/admin/users/forms.py
+++ b/openstack_dashboard/dashboards/admin/users/forms.py
@@ -70,7 +70,9 @@ ADD_PROJECT_URL = "horizon:admin:projects:create"
class CreateUserForm(BaseUserForm):
name = forms.CharField(label=_("User Name"))
- email = forms.EmailField(label=_("Email"))
+ email = forms.EmailField(
+ label=_("Email"),
+ required=False)
password = forms.RegexField(
label=_("Password"),
widget=forms.PasswordInput(render_value=False),
@@ -125,7 +127,9 @@ class CreateUserForm(BaseUserForm):
class UpdateUserForm(BaseUserForm):
id = forms.CharField(label=_("ID"), widget=forms.HiddenInput)
name = forms.CharField(label=_("User Name"))
- email = forms.EmailField(label=_("Email"))
+ email = forms.EmailField(
+ label=_("Email"),
+ required=False)
password = forms.RegexField(
label=_("Password"),
widget=forms.PasswordInput(render_value=False),