Commit f05e9569 by html5-李恒逸

Merge branch 'master' of https://git.okayapps.com/lihengyi/sunac-quanmin

* 'master' of https://git.okayapps.com/lihengyi/sunac-quanmin:
  验证码更新
  验证码修改
parents 426376b0 88dcf85f
...@@ -130,6 +130,7 @@ class Index extends CI_Controller{ ...@@ -130,6 +130,7 @@ class Index extends CI_Controller{
$captcha_type = 'small'; $captcha_type = 'small';
$captcha = generate_captcha($captcha_type); $captcha = generate_captcha($captcha_type);
//var_dump($captcha);die;
//将校验码存到session中 //将校验码存到session中
$this->session->set_userdata('captcha',$captcha['word']); $this->session->set_userdata('captcha',$captcha['word']);
$this->data['image'] = $captcha['image']; $this->data['image'] = $captcha['image'];
......
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<input type="text" name="captcha" id="captcha" class="input-sm input-small" onkeypress="EnterPress()"> <input type="text" name="captcha" id="captcha" class="input-sm input-small" onkeypress="EnterPress()">
<?php echo isset($image)?$image:'';?>
<?php echo isset($image)?$image:'no';?>
</div> </div>
<div class="form-actions text-center"> <div class="form-actions text-center">
<input type="checkbox" checked="true" name="chkRememberUsername" class="text-left" id="rmbUser">记住用户名 <input type="checkbox" checked="true" name="chkRememberUsername" class="text-left" id="rmbUser">记住用户名
...@@ -148,7 +149,7 @@ ...@@ -148,7 +149,7 @@
saveUserInfo(); saveUserInfo();
$('.login-form').submit(); $('.login-form').submit();
}) })
getCaptcha(); getCaptcha();
$("form img").click(function (){ $("form img").click(function (){
getCaptcha(); getCaptcha();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment