cvs: pearweb /include pear-auth.php

From: Date: Mon, 01 Apr 2002 17:15:15 +0000
Subject: cvs: pearweb /include pear-auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2948@lists.php.net to get a copy of this message
ssb Mon Apr 1 12:15:15 2002 EDT Modified files: /pearweb/include pear-auth.php Log: * log when authentication fails Index: pearweb/include/pear-auth.php diff -u pearweb/include/pear-auth.php:1.14 pearweb/include/pear-auth.php:1.15 --- pearweb/include/pear-auth.php:1.14 Thu Mar 28 21:21:53 2002 +++ pearweb/include/pear-auth.php Mon Apr 1 12:15:15 2002 @@ -34,7 +34,9 @@ $crypted = crypt($_SERVER['PHP_AUTH_PW'], $seed); if ($crypted == @$auth_user->password) { $ok = true; - } + } else { + error_log("pear-auth: user `$user': invalid password (des)", 0); + } break; } // handle new-style MD5-encrypted passwords @@ -42,11 +44,14 @@ $crypted = md5($_SERVER['PHP_AUTH_PW']); if ($crypted == @$auth_user->password) { $ok = true; + } else { + error_log("pear-auth: user `$user': invalid password (md5)", 0); } break; } } if (empty($auth_user->registered)) { + error_log("pear-auth: user `$user' not registered", 0); $ok = false; } if (!$ok) {

« previous php.pear.cvs (#2948) next »