Remove password field

This commit is contained in:
Götz 2019-04-11 02:37:59 +02:00
parent ac28a6ac22
commit 6aa3916b58
3 changed files with 0 additions and 4 deletions

View File

@ -18,9 +18,7 @@ class AdminUpdateLDAPUserForm(forms.Form):
class UpdateLDAPUserForm(forms.Form):
# username = forms.CharField(label='Nutzername', max_length=400)
email = forms.EmailField(label='E-Mail')
password = forms.CharField(label='Passwort', widget=forms.PasswordInput, required=False)
first_name = forms.CharField(label='Vorname', required=True)
last_name = forms.CharField(label='Nachname', required=True)
# phone = forms.(db_column='telephoneNumber', blank=True)

View File

@ -131,7 +131,6 @@ def user_update(request, realm_id, user_dn):
update_view='user/user_detail.jinja2',
form_class=UpdateLDAPUserForm,
form_attrs=[
{'model_field': 'password', 'form_field': 'password'},
{'model_field': 'first_name', 'form_field': 'first_name'},
{'model_field': 'last_name', 'form_field': 'last_name'},
{'model_field': 'email', 'form_field': 'email'}, ])

View File

@ -47,7 +47,6 @@
<form method="post" class="floating-label-form">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
{{ mform.email_input(form.email) }}
{{ mform.password_input(form.password) }}
{{ mform.text_input(form.first_name) }}
{{ mform.text_input(form.last_name) }}
<div class="d-flex mt-4">