diff --git a/public/main/admin/user_add.php b/public/main/admin/user_add.php index 7dabe8bcc2..55b1432382 100644 --- a/public/main/admin/user_add.php +++ b/public/main/admin/user_add.php @@ -218,6 +218,7 @@ $group[] = $form->createElement( 'id' => 'password', 'autocomplete' => 'off', 'onkeydown' => 'javascript: password_switch_radio_button();', + 'show_hide' => true, //'required' => 'required' ] ); diff --git a/public/main/admin/user_edit.php b/public/main/admin/user_edit.php index 0fb9d61c6d..2177c407aa 100644 --- a/public/main/admin/user_edit.php +++ b/public/main/admin/user_edit.php @@ -229,7 +229,10 @@ $group[] = $form->createElement( 'password', 'password', null, - ['onkeydown' => 'javascript: password_switch_radio_button();'] + [ + 'onkeydown' => 'javascript: password_switch_radio_button();', + 'show_hide' => true, + ] ); $form->addGroup($group, 'password', null, null, false); diff --git a/public/main/auth/reset.php b/public/main/auth/reset.php index e783b14da6..315d5c5f1f 100644 --- a/public/main/auth/reset.php +++ b/public/main/auth/reset.php @@ -13,7 +13,14 @@ if (!ctype_alnum($token)) { $form = new FormValidator('reset', 'POST', api_get_self().'?token='.$token); $form->addElement('header', get_lang('Reset password')); $form->addHidden('token', $token); -$form->addElement('password', 'pass1', get_lang('Password')); +$form->addElement( + 'password', + 'pass1', + get_lang('Password'), + [ + 'show_hide' => true, + ] +); $form->addElement( 'password', 'pass2',