开发者

Symfony sfGuardUserPlugin - check password for any user

开发者 https://www.devze.com 2023-03-25 12:00 出处:网络
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:

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

精彩评论

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