作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

去掉后台验证码登录

... ... @@ -67,14 +67,14 @@ class PublicController extends AdminBaseController
$this->error('非法登录!', cmf_get_root() . '/');
}
$captcha = $this->request->param('captcha');
if (empty($captcha)) {
$this->error(lang('CAPTCHA_REQUIRED'));
}
//验证码
if (!cmf_captcha_check($captcha)) {
$this->error(lang('CAPTCHA_NOT_RIGHT'));
}
// $captcha = $this->request->param('captcha');
// if (empty($captcha)) {
// $this->error(lang('CAPTCHA_REQUIRED'));
// }
// //验证码
// if (!cmf_captcha_check($captcha)) {
// $this->error(lang('CAPTCHA_NOT_RIGHT'));
// }
$name = $this->request->param("username");
if (empty($name)) {
... ...
... ... @@ -45,12 +45,12 @@
data-msg-required="">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control captcha">
<captcha height="32" width="150" font-size="18" style="cursor: pointer;position:absolute;right:1px;top:1px;"/>
</div>
</div>
<!--<div class="form-group">-->
<!--<div style="position: relative;">-->
<!--<input type="text" name="captcha" placeholder="验证码" class="form-control captcha">-->
<!--<captcha height="32" width="150" font-size="18" style="cursor: pointer;position:absolute;right:1px;top:1px;"/>-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<div style="position: relative;">
... ...