Commit b4aa012f authored by wangjiangze's avatar wangjiangze

登录密码采用加密传输

登录密码采用加密传输
parent 42c7e947
...@@ -21,7 +21,8 @@ class LoginAction extends Action{ ...@@ -21,7 +21,8 @@ class LoginAction extends Action{
public function loginDo(){ public function loginDo(){
$UserModel = D("User"); $UserModel = D("User");
$username=I('username'); $username=I('username');
$password=I('password','',md5); // $password=I('password','',md5);
$password=I('password');
$code=I('code','',md5); $code=I('code','',md5);
if (!$this->check_limit()){ if (!$this->check_limit()){
header('Content-Type:text/html; charset=utf-8'); header('Content-Type:text/html; charset=utf-8');
...@@ -144,7 +145,8 @@ class LoginAction extends Action{ ...@@ -144,7 +145,8 @@ class LoginAction extends Action{
//2.验证 GA //2.验证 GA
$UserModel = D("User"); $UserModel = D("User");
$username=I('username'); $username=I('username');
$password=I('password','',md5); // $password=I('password','',md5);
$password=I('password');
$code=I('code'); $code=I('code');
$where['account'] = $username; $where['account'] = $username;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<link rel="shortcut icon" href="/{$SYSTEM_INFO.favicon}"> <link rel="shortcut icon" href="/{$SYSTEM_INFO.favicon}">
<link href="__PUBLIC__/newVsdn/css/style_login.css" rel="stylesheet" type="text/css" /> <link href="__PUBLIC__/newVsdn/css/style_login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common/md5.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//搜索输入框 //搜索输入框
function Focus(obj) { function Focus(obj) {
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function login(){ function login(){
$('input[name="password"]').val(hex_md5($("input#password").val()));
$("#f").submit(); $("#f").submit();
} }
$(function(){ $(function(){
...@@ -90,7 +92,8 @@ ...@@ -90,7 +92,8 @@
</div> </div>
<div class="inputWrap"> <div class="inputWrap">
<img src="__PUBLIC__/newVsdn/images/password.png"/> <img src="__PUBLIC__/newVsdn/images/password.png"/>
<input id="password" name="password" type="password" placeholder="密码" onclick="Focus(this);" onblur="Blur(this);" class="input" /> <input type="hidden" name="password" valu=""/>
<input id="password" type="password" placeholder="密码" onclick="Focus(this);" onblur="Blur(this);" class="input" />
</div> </div>
<div class="inputWrap"> <div class="inputWrap">
<img src="__PUBLIC__/newVsdn/images/password.png"/> <img src="__PUBLIC__/newVsdn/images/password.png"/>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<link rel="shortcut icon" href="/{$SYSTEM_INFO.favicon}"> <link rel="shortcut icon" href="/{$SYSTEM_INFO.favicon}">
<link href="__PUBLIC__/newVsdn/css/style_login.css" rel="stylesheet" type="text/css" /> <link href="__PUBLIC__/newVsdn/css/style_login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common/md5.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//搜索输入框 //搜索输入框
function Focus(obj) { function Focus(obj) {
...@@ -29,6 +30,7 @@ ...@@ -29,6 +30,7 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function login(){ function login(){
$('input[name="password"]').val(hex_md5($("input#password").val()));
$("#f").submit(); $("#f").submit();
} }
$(function(){ $(function(){
...@@ -94,7 +96,8 @@ ...@@ -94,7 +96,8 @@
</div> </div>
<div class="inputWrap"> <div class="inputWrap">
<img src="__PUBLIC__/newVsdn/images/password.png"/> <img src="__PUBLIC__/newVsdn/images/password.png"/>
<input id="password" name="password" type="password" placeholder="密码" value="密码" onclick="Focus(this);" onblur="Blur(this);" class="input" /> <input type="hidden" name="password" value=""/>
<input id="password" type="password" placeholder="密码" value="密码" onclick="Focus(this);" onblur="Blur(this);" class="input" />
</div> </div>
<div class="inputWrap"> <div class="inputWrap">
<img src="__PUBLIC__/newVsdn/images/password.png"/> <img src="__PUBLIC__/newVsdn/images/password.png"/>
......
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