index 467a7c6f177ed5a4ee519fefe9313891b14c261c..df07d11623bc9e282028dcf0dd2f26f28a0751be 100644 (file)
}
if ($display == ""){
- if((isset($config->data['MAIN']['ACCOUNTEXPIRED'])) && $config->data['MAIN']['ACCOUNTEXPIRED'] == "0"){
+ if((isset($config->data['MAIN']['ACCOUNT_EXPIRATION'])) &&
+ !preg_match('/true/i', $config->data['MAIN']['ACCOUNT_EXPIRATION'])){
$display= $smarty->fetch(get_template_path("password.tpl", TRUE));
}else{
$expired= ldap_expired_account($config, $ui->dn, $ui->username);