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

Bug #14119 liveuser->login does not return false and script stops executing
Submitted: 2008-06-10 22:57 UTC
From: sl1ng5h0t Assigned:
Status: Open Package: LiveUser (version 0.16.13)
PHP Version: 5.2.6 OS: Win XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 1 = ?

 
 [2008-06-10 22:57 UTC] sl1ng5h0t (Art Malvar)
Description: ------------ When executing code below: if (!$liveUserObj->login($username, $password)){ showLoginForm($liveUserObj); } The script stops after the line. No error nor exceptions are thrown. //Liveuser/Auth/Common.php line340 changed return $result to return false and script continued. // Read user data from database $result = $this->readUserData($handle, $passwd, $auth_user_id); if (!$result) { return false; } Test script: --------------- Used gvn Auth example 4

Comments

 [2009-03-13 03:01 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Unfortunately the patch you provided will not work. If you look at the API documentation then you will see that login() can return true for success, false on failure and null if the user is inactive, did you ever try to do a var_dump on ($liveUserObj->login($username, $password)) ?
 [2010-11-24 13:12 UTC] asdlkj (Carmen Pr)
I had the same problem with examples 1 and 2 from the package (version 0.16.14), example.php stopped at the line of $LU->login... I tracked the problem to the function loadClass in LiveUser.php, where the "@" in line 546 made the file included fail silently. The file to be included was LiveUser/Auth/XML.php which required XML/Tree.php. Solution: ---------- Installed package PEAR::XML_Tree