svn: /web/php-bugs/trunk/include/ auth.inc
| From: | Hannes Magnusson | Date: | Wed, 25 Nov 2009 19:53:36 +0000 |
| Subject: | svn: /web/php-bugs/trunk/include/ auth.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-6611@lists.php.net to get a copy of this message | ||
bjori Wed, 25 Nov 2009 19:53:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291322
Log:
Suppress error on invalid passwords.
(wiki?) users usually are the onlyones that actually get that error, devs tend to login in
otherplaces/write correct passwords anyway.
"Fixes" bug#50292
Bug: http://bugs.php.net/50292 (Verified) error while
sending a bug comment
Changed paths:
U web/php-bugs/trunk/include/auth.inc
Modified: web/php-bugs/trunk/include/auth.inc
===================================================================
--- web/php-bugs/trunk/include/auth.inc 2009-11-25 18:58:14 UTC (rev 291321)
+++ web/php-bugs/trunk/include/auth.inc 2009-11-25 19:53:36 UTC (rev 291322)
@@ -27,7 +27,6 @@
exit;
}
if (isset($a["errno"])) {
- echo "Authentication failed: ", $a["errstr"], "\n";
return false;
}
@@ -48,10 +47,6 @@
return false;
}
- if (!verify_password($c[0], $c[1])) {
- return false;
- }
-
- return true;
+ return verify_password($c[0], $c[1]);
}