username; $role = $result->role; if( strcmp($username,"") && strcmp($role,"") ) { // // Save last click time for inactivity timeout // $lastClick = time(); $_SESSION['lastclick'] = $lastClick; // // set a hash of the user name // $_SESSION['login'] =$username.','.md5($username.$secret_word); //error_log("LOGIN HASH COOKE = ".print_r($_SESSION['login'], true)); $_SESSION['user'] = $result; header('location:'.HOME_VIEW_PAGE ); } else { // This really shouldn't happen, but if it does just go back to the login // screen. header('location:'.LOGIN_PAGE ); } } // errorCode != 0 displays an error in the HTML below } ?> Login Page
IBM Total Storage IBM
Password policy:" . "
Minimum length: " . $policy->minChars . "
Minimum uppercase: " . $policy->minUpper . "
Minimum lowercase: " . $policy->minLower . "
Minimum digit: " . $policy->minDigit . "
Minimum special: " . $policy->minSpecial . "
Maximum consecutive: " . ($policy->maxConsecutive ? $policy->maxConsecutive : "unlimited") . "
Minimum password changes before reuse: " . ($policy->minReuse ? $policy->minReuse : "unlimited") . "
Minimum days before password change: " . ($policy->minDays ? $policy->minDays : "unlimited") ; error_log("Failed to update password for $user->username, errorCode: $errorCode"); $errorMap = array( 4353 => "Password too short", 4354 => "Too few uppercase characters", 4355 => "Too few lowercase characters", 4356 => "Too few numerical characters", 4357 => "Too few special characters", 4358 => "Too many consecutive characters", 4359 => "Password change required", 4360 => "Minimum days before password change not met", 4361 => "Cannot reuse password", 4362 => "Password cannot contain user name" ); $message = $errorMap[$errorCode]; echo ""; } ?>
Password Change Required. "; echo ""; echo ""; echo ""; echo "
Invalid password. " . $message . "
" . $rules . "
"; echo "