开发者

Symfony sfGuardUserPlugin - check password for any user

How can I check any user's password in Symfony? (not only the logged in user) (I use sfGuardPlugin)

I've tried like this, but doesn't work:

$user = Doctrine::getTable('sfGuardUser')->find(26);
$is_passwor开发者_运维问答d_valid = $user->checkPassword('password');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜