summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-07-12 21:22:09 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-07-12 21:22:09 (GMT)
commit66cf7730cb2d051dc4c37eaedfbcd01b5022ce9d (patch)
tree2bf232202a80650f6fa800e34de3332dd256fedc /www
parentd0bba9609cd6d4dc7fc1704f428ce57bedcfa9dc (diff)
downloadkolab-webadmin-66cf7730cb2d051dc4c37eaedfbcd01b5022ce9d.tar.gz
kolab/issue4430 (Modify User reply page contains user password in plain text)
Diffstat (limited to 'www')
-rw-r--r--www/admin/administrator/admin.php.in2
-rw-r--r--www/admin/domainmaintainer/domainmaintainer.php.in2
-rw-r--r--www/admin/maintainer/maintainer.php.in2
-rw-r--r--www/admin/user/user.php.in2
4 files changed, 8 insertions, 0 deletions
diff --git a/www/admin/administrator/admin.php.in b/www/admin/administrator/admin.php.in
index 74ed95b..d62ee8f 100644
--- a/www/admin/administrator/admin.php.in
+++ b/www/admin/administrator/admin.php.in
@@ -243,6 +243,8 @@ switch( $action ) {
$heading = _('Modify Administrator');
$messages[] = _('Administrator ').$ldap_object['dn']._(' successfully modified');
$form->setValues();
+ $form->entries['password_0']['value'] = '';
+ $form->entries['password_1']['value'] = '';
$form->entries['action']['value'] = 'save';
$content = $form->outputForm();
break;
diff --git a/www/admin/domainmaintainer/domainmaintainer.php.in b/www/admin/domainmaintainer/domainmaintainer.php.in
index 13d7e26..f88b958 100644
--- a/www/admin/domainmaintainer/domainmaintainer.php.in
+++ b/www/admin/domainmaintainer/domainmaintainer.php.in
@@ -243,6 +243,8 @@ switch( $action ) {
$heading = _('Modify Domain Maintainer');
$messages[] = _('Maintainer ').$ldap_object['dn']._(' successfully modified');
$form->setValues();
+ $form->entries['password_0']['value'] = '';
+ $form->entries['password_1']['value'] = '';
if( $auth->group() != 'admin' && $auth->group() != 'maintainer' ) {
$form->entries['firstname']['attrs'] = 'readonly';
$form->entries['lastname']['attrs'] = 'readonly';
diff --git a/www/admin/maintainer/maintainer.php.in b/www/admin/maintainer/maintainer.php.in
index 35b521e..153744b 100644
--- a/www/admin/maintainer/maintainer.php.in
+++ b/www/admin/maintainer/maintainer.php.in
@@ -240,6 +240,8 @@ switch( $action ) {
$heading = _('Modify Maintainer');
$messages[] = _('Maintainer ').$ldap_object['dn']._(' successfully modified');
$form->setValues();
+ $form->entries['password_0']['value'] = '';
+ $form->entries['password_1']['value'] = '';
if( $auth->group() != 'admin' ) {
$form->entries['firstname']['attrs'] = 'readonly';
$form->entries['lastname']['attrs'] = 'readonly';
diff --git a/www/admin/user/user.php.in b/www/admin/user/user.php.in
index 6788d85..aa3c455 100644
--- a/www/admin/user/user.php.in
+++ b/www/admin/user/user.php.in
@@ -757,6 +757,8 @@ switch( $action ) {
$heading = _('Modify User');
if( !$errors ) $messages[] = sprintf(_("User '%s' successfully modified"), $dn);
$form->setValues();
+ if(array_key_exists('password_0',$form->entries)) $form->entries['password_0']['value'] = '';
+ if(array_key_exists('password_1',$form->entries)) $form->entries['password_1']['value'] = '';
$form->entries['mail']['attrs'] = 'readonly';
$form->entries['kolabhomeserver']['attrs'] = 'readonly';
$form->entries['action']['value'] = 'save';