Update a field after auth.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Update a field after auth.

whisher

Hi.

I should update a field after

$result->isValid()

so I ended up with

$sql = "UPDATE users SET logged='1' WHERE id = ? ";

$result = Zend_Db_Table::getDefaultAdapter()->query($sql, array('1'));

$this->_helper->redirector('index', 'index');

Is there a better way ?

Is it worth to extend Zend_Auth_Adapter_DbTable ?

Bye