mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
Update system_usermanager_passwordmg.php
This commit is contained in:
parent
dfdadb6274
commit
da9ff6bc2a
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
|||
$authenticator = (new OPNsense\Auth\AuthenticationFactory())->get('Local Database');
|
||||
$input_errors = $authenticator->checkPolicy($username, $pconfig['passwordfld0'], $pconfig['passwordfld1']);
|
||||
}
|
||||
} elseif (!empty($_SESSION['user_shouldChangePassword'])) {
|
||||
$input_errors[] = gettext('Your password does not match the selected security policies. Please provide a new one.');
|
||||
}
|
||||
|
||||
if (count($input_errors) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue