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

Request #16007 optional "is_active" field check
Submitted: 2009-03-10 17:06 UTC
From: kae Assigned:
Status: Wont fix Package: Auth (version 1.6.1)
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-03-10 17:06 UTC] kae (Kae Verens)
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.

Comments

 [2009-03-10 21:20 UTC] kguest (Ken Guest)
-Summary: optinal "is_active" field check +Summary: optional "is_active" field check
 [2013-04-30 13:06 UTC] flipflop (Michael Kristen)
Yes, that would be nice!
 [2014-04-20 10:09 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Wont fix
Going to mark as a wontfix, as the package is unmaintained. Pull requests are more than welcome.