svn: /pear/packages/Bugtracker/trunk/include/ master-auth.inc

From: Date: Thu, 13 Aug 2009 13:46:33 +0000
Subject: svn: /pear/packages/Bugtracker/trunk/include/ master-auth.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-57115@lists.php.net to get a copy of this message
jani Thu, 13 Aug 2009 13:46:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287230 Log: - Use the global error array also for login errors Changed paths: U pear/packages/Bugtracker/trunk/include/master-auth.inc Modified: pear/packages/Bugtracker/trunk/include/master-auth.inc =================================================================== --- pear/packages/Bugtracker/trunk/include/master-auth.inc 2009-08-13 13:41:31 UTC (rev 287229) +++ pear/packages/Bugtracker/trunk/include/master-auth.inc 2009-08-13 13:46:33 UTC (rev 287230) @@ -6,6 +6,8 @@ function verify_password($user, $pass) { + global $errors; + $post = http_build_query( array( "token" => getenv("TOKEN"), @@ -26,11 +28,11 @@ $a = @unserialize($s); if (!is_array($a)) { - echo "Unknown authentication error\n"; + $errors[] = "Unknown authentication error\n"; exit; } if (isset($a["errno"])) { - echo "Authentication failed: ", $a["errstr"], "\n"; + $errors[] = "Authentication failed: {$a['errstr']}\n"; return false; }

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