From c11fc95d97d5ef14f61a912883fff2f1ddfdbabc Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 9 Sep 2014 18:23:50 -0700 Subject: in case somebody has problems and does an update to try and fix it, put something in the logs to show what's happening. --- include/auth.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') 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) -- cgit v1.2.3