2010年11月1日星期一

[fw-auth] Mimic a user

Hi,

When I log in as admin I would like to be able to choose a user and then
sort of be them, but with an extra admin tool bar.

I do a lot of this:

$u = Doctrine::getTable('User')
->createQuery('u')
->where('u.email=?');

$user = $u->fetchOne(array(
Zend_Auth::getInstance()->getIdentity()
), Doctrine_Core::HYDRATE_RECORD);

I was thinking of extending Zend_Auth_Adapter_DbTable so it would respond
with the user name when I am mimicing them? Should I be looking at ACL?

How do you guys solve this?

Many thanks,

monk.e.boy
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Mimic-a-user-tp3023001p3023001.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: