added message to login: account is expired

This commit is contained in:
Ralf Becker 2003-10-16 14:55:12 +00:00
parent 2fd99e4fa3
commit 7abb19b143
2 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,9 @@
case 5:
return '<font color="FF0000">' . lang('Bad login or password') . '</font>';
break;
case 98:
return '<font color="FF0000">' . lang('Account is expired') . '</font>';
break;
case 99:
return '<font color="FF0000">' . lang('Blocked, too many attempts') . '</font>';
break;

View File

@ -508,7 +508,7 @@
{
$this->reason = $blocked ? 'blocked, too many attempts' : 'bad login or password';
$this->cd_reason = $blocked ? 99 : 5;
$this->log_access($this->reason,$login,$user_ip,0); // log unsuccessfull login
return False;
}
@ -557,6 +557,8 @@
));
$GLOBALS['phpgw']->log->commit();
}
$this->reason = 'account is expired';
$this->cd_reason = 98;
return False;
}