我需要告诉Zend用户在特定场合进行了身份验证,但我不想为此构建身份验证适配器。PHP Zend身份验证 - 我如何告诉Zend用户已通过身份验证
我想是这样的:
if ($user == 'sam') {
// this user is valid, tell Zend to authenticate
Zend_Auth::authenticate(true);
}
换句话说,我不想委托确定用户是否是有效的一些验证Adapter.I想告诉Zend的“任务嘿,这个人和我在一起,所以设置认证cookie并让他使用我的网站“。
有没有办法做到这一点?
你达人!非常感谢 – myworkaccount 2013-03-07 19:10:41