in case somebody has problems and does an update to try and fix it, put something in the logs to show what's happening.
This commit is contained in:
parent
18f8f08367
commit
c11fc95d97
@ -60,6 +60,19 @@ function account_verify_password($email,$pass) {
|
|||||||
}
|
}
|
||||||
$error = 'password failed for ' . $email;
|
$error = 'password failed for ' . $email;
|
||||||
logger($error);
|
logger($error);
|
||||||
|
|
||||||
|
|
||||||
|
if($record['account_flags'] & ACCOUNT_UNVERIFIED)
|
||||||
|
logger('Account is unverified.');
|
||||||
|
if($record['account_flags'] & ACCOUNT_BLOCKED)
|
||||||
|
logger('Account is blocked.');
|
||||||
|
if($record['account_flags'] & ACCOUNT_EXPIRED)
|
||||||
|
logger('Account is expired.');
|
||||||
|
if($record['account_flags'] & ACCOUNT_REMOVED)
|
||||||
|
logger('Account is removed.');
|
||||||
|
if($record['account_flags'] & ACCOUNT_PENDING)
|
||||||
|
logger('Account is pending.');
|
||||||
|
|
||||||
// Also log failed logins to a separate auth log to reduce overhead for server side intrusion prevention
|
// Also log failed logins to a separate auth log to reduce overhead for server side intrusion prevention
|
||||||
$authlog = get_config('system', 'authlog');
|
$authlog = get_config('system', 'authlog');
|
||||||
if ($authlog)
|
if ($authlog)
|
||||||
|
Reference in New Issue
Block a user