cvs: pear /LiveUser LiveUser.php /LiveUser/Auth Common.php

From: Date: Tue, 16 Aug 2005 09:08:16 +0000
Subject: cvs: pear /LiveUser LiveUser.php /LiveUser/Auth Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34014@lists.php.net to get a copy of this message
lsmith Tue Aug 16 05:08:16 2005 EDT Modified files: /pear/LiveUser/Auth Common.php /pear/LiveUser LiveUser.php Log: - fixed bugs related to is_active handling (resulting in users being able to login that are set to in active!) http://cvs.php.net/diff.php/pear/LiveUser/Auth/Common.php?r1=1.32&r2=1.33&ty=u Index: pear/LiveUser/Auth/Common.php diff -u pear/LiveUser/Auth/Common.php:1.32 pear/LiveUser/Auth/Common.php:1.33 --- pear/LiveUser/Auth/Common.php:1.32 Tue Aug 16 04:53:07 2005 +++ pear/LiveUser/Auth/Common.php Tue Aug 16 05:08:10 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Common.php,v 1.32 2005/08/16 08:53:07 lsmith Exp $ + * @version CVS: $Id: Common.php,v 1.33 2005/08/16 09:08:10 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -435,7 +435,7 @@ // If login is successful (user data has been read) // ...we still need to check if this user is declared active if (!array_key_exists('is_active', $this->propertyValues) - || $this->propertyValues['is_active'] !== false + || $this->propertyValues['is_active'] ) { // ...and if so, we have a successful login (hooray)! $this->loggedIn = true; http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.98&r2=1.99&ty=u Index: pear/LiveUser/LiveUser.php diff -u pear/LiveUser/LiveUser.php:1.98 pear/LiveUser/LiveUser.php:1.99 --- pear/LiveUser/LiveUser.php:1.98 Tue Aug 16 04:53:05 2005 +++ pear/LiveUser/LiveUser.php Tue Aug 16 05:08:15 2005 @@ -40,7 +40,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: LiveUser.php,v 1.98 2005/08/16 08:53:05 lsmith Exp $ + * @version CVS: $Id: LiveUser.php,v 1.99 2005/08/16 09:08:15 lsmith Exp $ * @link http://pear.php.net/LiveUser */ @@ -1053,7 +1053,7 @@ $this->setRememberCookie($handle, $passwd, $remember); $this->status = LIVEUSER_STATUS_OK; break; - } elseif ($auth->getProperty('is_active') === false) { + } elseif (isset($auth->getProperty('is_active'))) { $this->status = LIVEUSER_STATUS_ISINACTIVE; break; }

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