Update a field after auth.

1 message Options
Embed this post
Permalink
whisher

Update a field after auth.

Reply Threaded More More options
Print post
Permalink

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