问题描述
我正在使用 Tutor LMS,但注册页面不支持强密码验证..注册商可以使用非常弱的密码进行注册,例如:1 或 1234!
所以我想编辑这个插件的 register.PHP 文件.. 我使用了以下代码,但它没有检查密码的强度。还有其他方法可以使用吗?通过使用 add_filter()..
/**
* Change the strength requirement on the woocommerce password
*
* Strength Settings
* 4 = Strong
* 3 = Medium (default)
* 2 = Also Weak but a little stronger
* 1 = Password should be at least Weak
* 0 = Very Weak / Anything
*/
add_filter( 'woocommerce_min_password_strength','misha_change_password_strength' );
function misha_change_password_strength( $strength ) {
return 4;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)