Req #16007 [Opn]: optional "is_active" field check

From: Date: Tue, 10 Mar 2009 17:20:44 +0000
Subject: Req #16007 [Opn]: optional "is_active" field check
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-129@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16007&edit=1 ID: 16007 Updated by: ken@linux.ie Reported By: kae at verens dot com -Summary: optinal "is_active" field check +Summary: optional "is_active" field check Status: Open Type: Feature/Change Request Package: Auth Operating System: Linux Package Version: 1.6.1 PHP Version: 5.2.5 Roadmap Versions: New Comment: -Summary: optinal "is_active" field check +Summary: optional "is_active" field check Previous Comments: ------------------------------------------------------------------------ [2009-03-10 13:06:48] kae Description: ------------ I'd like to authenticate against username/password and an is_active field. In this case, a user may be made in-active without removing his/her details. Test script: --------------- $options=array( 'dsn' => $CONF['db_connection_string'], 'usernamecol' => 'email', 'passwordcol' => 'password', 'isactivecol' => 'is_active' 'table' => 'users' ); $auth=new Auth('MDB2', $options, '', false); $auth->start(); if($auth->checkAuth()){ echo 'yes'; } Expected result: ---------------- I'd expect 'yes' to be shown if the username and password are correct and if is_active is not 0. If is_active is 0, I would not expect anything to be shown. Actual result: -------------- at the moment, 'yes' will always be shown. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16007&edit=1

« previous php.pear.bugs (#129) next »