phpcmsv9取消会员登录验证码

1 \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);
}


2 \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>

删除这些代码就Ok啦


后台

找到文件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)) {
 
  showmessage(L('code_error'), HTTP_REFERER);
 
  }
 
 
  找到文件phpcms\modules\admin\templates\login.tpl.php

      模板,DW验证的那两个框框删了就完了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值