PMCORE-4059 Password Policy is not working
This commit is contained in:
@@ -608,7 +608,7 @@ class LdapAdvanced
|
||||
if (empty($message)) {
|
||||
$message = G::LoadTranslation('ID_LDAP_ERROR_CONNECTION');
|
||||
}
|
||||
Cache::put('ldapMessageError', $message, 2);
|
||||
Cache::put('ldapMessageError', $message, 120); //laravel 8.x the time parameter is in seconds.
|
||||
$this->log($linkIdentifier, $messageError);
|
||||
}
|
||||
|
||||
@@ -1588,7 +1588,7 @@ class LdapAdvanced
|
||||
|
||||
if ($error = ldap_errno($ldapcnn)) {
|
||||
$messageError = ldap_err2str($error);
|
||||
Cache::put('ldapMessageError', $messageError, 2);
|
||||
Cache::put('ldapMessageError', $messageError, 120); //laravel 8.x the time parameter is in seconds.
|
||||
//
|
||||
} else {
|
||||
if ($searchResult) {
|
||||
|
||||
@@ -20,7 +20,7 @@ try {
|
||||
$googleClient = $gmailOAuth->getGoogleClient();
|
||||
$result = $googleClient->authenticate($_GET['code']);
|
||||
if (isset($result["error"])) {
|
||||
Cache::put('errorMessageIfNotAuthenticate', G::json_decode($result["error"]), 2);
|
||||
Cache::put('errorMessageIfNotAuthenticate', G::json_decode($result["error"]), 120); //laravel 8.x the time parameter is in seconds.
|
||||
G::header($header);
|
||||
return;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ try {
|
||||
* value in minutes for each session. We use 2 minutes, enough time to retrieve
|
||||
* the error message if there is one.
|
||||
*/
|
||||
Cache::put('errorMessageIfNotAuthenticate', $e->getMessage(), 2);
|
||||
Cache::put('errorMessageIfNotAuthenticate', $e->getMessage(), 120); //laravel 8.x the time parameter is in seconds.
|
||||
}
|
||||
|
||||
G::header($header);
|
||||
|
||||
@@ -34,7 +34,7 @@ try {
|
||||
* value in minutes for each session. We use 2 minutes, enough time to retrieve
|
||||
* the error message if there is one.
|
||||
*/
|
||||
Cache::put('errorMessageIfNotAuthenticate', $e->getMessage(), 2);
|
||||
Cache::put('errorMessageIfNotAuthenticate', $e->getMessage(), 120); //laravel 8.x the time parameter is in seconds.
|
||||
}
|
||||
|
||||
G::header($header);
|
||||
|
||||
@@ -52,7 +52,7 @@ try {
|
||||
$enterprise->setup();
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
Cache::put('ldapMessageError', '', 2);
|
||||
Cache::put('ldapMessageError', '', 120); //laravel 8.x the time parameter is in seconds.
|
||||
$uid = $RBAC->VerifyLogin($usr, $pwd);
|
||||
$ldapMessageError = Cache::pull('ldapMessageError');
|
||||
$RBAC->cleanSessionFiles(72); //cleaning session files older than 72 hours
|
||||
@@ -404,7 +404,7 @@ try {
|
||||
"browserTimeZoneOffset" => $_POST['form']['BROWSER_TIME_ZONE_OFFSET']
|
||||
];
|
||||
$messPassword['__USR_PASSWORD_CHANGE__'] = G::generateUniqueID();
|
||||
Cache::put($messPassword['__USR_PASSWORD_CHANGE__'], $values, 2);
|
||||
Cache::put($messPassword['__USR_PASSWORD_CHANGE__'], $values, 120); //laravel 8.x the time parameter is in seconds.
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/changePasswordpm3', '', $messPassword, 'sysLoginVerify');
|
||||
G::RenderPage('publish');
|
||||
session_destroy();
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
|
||||
{$header}
|
||||
</head>
|
||||
{if ($user_logged neq '' or $tracker neq '') and $timezone_status neq 'failed'}
|
||||
{if ((isset($user_logged) && $user_logged neq '') or (isset($tracker) && $tracker neq '')) and $timezone_status neq 'failed'}
|
||||
<body>
|
||||
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" id="pm_main_table">
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user