PHPCMS V9 取消后台登陆验证码

必力  2018-03-19   6328


验证码很烦,,所以就想取消掉。

方法如下:

取消后台登陆验证码:
打开\phpcms\modules\admin\index.php
找到

$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);
if ($_SESSION['code'] != strtolower($code)) {
$_SESSION['code'] = '';
showmessage(L('code_error'), HTTP_REFERER);
}

全部注消如下:

//隐藏验证码 $code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);
//if ($_SESSION['code'] != strtolower($code)) {
//    $_SESSION['code'] = '';
//showmessage(L('code_error'), HTTP_REFERER);
//}

呵呵,,这下清静了。。

PHPCMS 验证码