繁体   English   中英

我已经通过我的新插件在wordpress中创建了更改密码功能,该密码如何匹配用户输入的密码?

[英]wordpress I have create change Password Functionality through my new Plugin in wordpress how to match the user enterd Password?

我需要在wordpress中使用密码检查功能来更改密码功能。我使用wp_check_password($ opass,$ pass,$ user_id); 功能,但结果有误有人帮我吗?

您究竟如何使用wp_check_password 根据法典 ,第二个参数需要是加密的密码-您是否以加密方式传递了密码?

看看wp-includes / user.php中的wp_authenticate_username_password ,看看WordPress是如何做到的。 甚至自己调用wp_authenticate_username_password

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM