Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.4

Bug #1802 getAuth() is always Bool(false)
Submitted: 2004-07-06 03:58 UTC
From: php at gonzo dot ch Assigned: yavo
Status: Closed Package: Auth
PHP Version: 4.3.7 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-07-06 03:58 UTC] php at gonzo dot ch
Description: ------------ After logging in, the getAuth()-function give always false as return. I got the right result, as I changed in Auth.php function getAuth() { if ( isset($this->session['registered']) ) { $this->session['registered']; } return false; } to function getAuth() { if ( isset($this->session['registered']) ) { return $this->session['registered']; } return false; } Package: Auth-1.3.0r2 Roman

Comments

 [2004-07-06 06:30 UTC] yavo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Fixed in the cvs it is recomented to use checkAuth instead of getAuth, get auth will only return if the user has been authenthicated ever. Check auth will perform extra checks like idle time, some advanced security checks if enabled and so on.
 [2004-07-06 06:50 UTC] php at gonzo dot ch
Thanks for your great work. Roman