phpcms v9会员登录取消验证码方法
phpcms v9会员登录取消验证码方法
\phpcms\modules\member\index.php 查找“//判断验证码”下面4行代码,注释掉:
//判断验证码$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);if ($_SESSION['code'] != strtolower($code)) {showmessage(L('code_error'), HTTP_REFERER);}
\phpcms\templates\default\member\login.html 模板页面代码:
<div class="input"><label>{L('checkcode')}:</label><input type="text" id="code" name="code" size="8" class="input-text">{form::checkcode('code_img', '4', '14', 84, 24)}</div>
这样就实现了phpcms v9会员登录取消验证码。