diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/auth.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/auth.php b/include/auth.php index cc07917b7..0e3f8bbaa 100644 --- a/include/auth.php +++ b/include/auth.php @@ -60,6 +60,19 @@ function account_verify_password($email,$pass) { } $error = 'password failed for ' . $email; 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 $authlog = get_config('system', 'authlog'); if ($authlog) |