Update system_usermanager_passwordmg.php

This commit is contained in:
Konstantinos Spartalis 2026-04-22 03:56:32 +03:00
parent dfdadb6274
commit da9ff6bc2a

View file

@ -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) {