You might need to extend DB_Table and add an extra option. Is there
such an API that already uses this and wraps with acls for groups /
rights / permissions from a db ?
On 28/09/2007, at 7:19 PM, Michael Raymond wrote:
Hi all,
How can I achieve to authenticate users only if the user match
their password and the status is active?
(in the user table status field value 1=active; 0=inactive)
AuthController
$authAdapter->setTableName($config->system-
>userTableName);
$authAdapter->setIdentityColumn($config->system-
>userColumn);
$authAdapter->setCredentialColumn($config->system-
>passwordColumn);
$authAdapter->setIdentity($post->username);
$authAdapter->setCredential($post->password);
$auth = Zend_Auth::getInstance();
$result = $auth->authenticate($authAdapter);
---