From 28ab6d5bf508120956d575e260ed2fa2b8417e59 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 27 Jan 2013 01:19:24 -0800 Subject: lostpass fixes and login/logout flow if authenticated but no default channel exists --- include/auth.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/auth.php') diff --git a/include/auth.php b/include/auth.php index 68dc9308f..14751f5a2 100644 --- a/include/auth.php +++ b/include/auth.php @@ -39,9 +39,11 @@ function account_verify_password($email,$pass) { foreach($r as $record) { if(($record['account_flags'] == ACCOUNT_OK) || ($record['account_flags'] == ACCOUNT_UNVERIFIED) && (hash('whirlpool',$record['account_salt'] . $pass) === $record['account_password'])) { + logger('password verified for ' . $email); return $record; } } + logger('password failed for ' . $email); return null; } -- cgit v1.2.3