PbootCMS后台关闭验证码,登录提示“验证码不能为空”的解决方法
apps/admin/controller/IndexController.php 大概在126行:
if (!$checkcode) {
json(0, '验证码不能为空!');
}
改成
if (!$checkcode && $this->config('admin_check_code')) {
json(0, '验证码不能为空!');
}PbootCMS后台关闭验证码,登录提示“验证码不能为空”的解决方法
apps/admin/controller/IndexController.php 大概在126行:
if (!$checkcode) {
json(0, '验证码不能为空!');
}
改成
if (!$checkcode && $this->config('admin_check_code')) {
json(0, '验证码不能为空!');
}本文来自博客园,作者:可有仙子迎风立,转载请注明原文链接:https://www.cnblogs.com/xztime/p/19673032