0

I need password check function in wordpress for change Password functionlity.I have use wp_check_password( $opass,$pass,$user_id ); function but I got wrong results Any one Help me?

4

1 回答 1

0

你到底是怎么用的wp_check_password?根据codex,第二个参数需要是加密密码 - 你是否将其加密传递?

查看wp-includes/user.phpwp_authenticate_username_password以了解 WordPress 是如何做到的;甚至自称。wp_authenticate_username_password

于 2012-07-11T10:33:30.907 回答