Merged in bugfix/PMCORE-4059-A (pull request #8691)

PMCORE-4059 Password Policy is not working

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Gutierrez
2023-01-16 15:55:12 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -364,7 +364,7 @@ try {
//The other authentication methods should not be validated by password security policies.
if (!empty($aUser['USR_AUTH_TYPE'])) {
$authType = $aUser['USR_AUTH_TYPE'];
if ($authType != "mysql" && $authType != "") {
if (strtolower($authType) != "mysql" && $authType != "") {
$policiesToExclude = [
'ID_PPP_MINIMUM_LENGTH',
'ID_PPP_MAXIMUM_LENGTH',