diff --git a/main/admin/user_edit.php b/main/admin/user_edit.php index 010fc58640..01cc94ae3d 100755 --- a/main/admin/user_edit.php +++ b/main/admin/user_edit.php @@ -237,7 +237,16 @@ $group[] = $form->createElement( ] ); -$form->addGroup($group, 'password', null, null, false); +$form->addGroup( + $group, + 'password', + [ + null, + Security::getPasswordRequirementsToString(), + ], + null, + false +); $form->addPasswordRule('password', 'password'); $form->addNoSamePasswordRule('password', $userEntity); diff --git a/main/auth/reset.php b/main/auth/reset.php index e7e53f7f11..1008ca7a34 100644 --- a/main/auth/reset.php +++ b/main/auth/reset.php @@ -25,7 +25,14 @@ if (!$user) { $form = new FormValidator('reset', 'POST', api_get_self().'?token='.$token); $form->addElement('header', get_lang('ResetPassword')); $form->addHidden('token', $token); -$form->addElement('password', 'pass1', get_lang('Password')); +$form->addElement( + 'password', + 'pass1', + [ + get_lang('Password'), + Security::getPasswordRequirementsToString(), + ] +); $form->addElement( 'password', 'pass2',