Skip to content

Commit

Permalink
Update login.php
Browse files Browse the repository at this point in the history
登录时验证MD5加密之后的密码
  • Loading branch information
tianmingxing committed Nov 20, 2015
1 parent b42291a commit 34e4f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MinPHP/run/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if($type == 'do'){
$_VAL = I($_POST);
$login_name = $_VAL['name'];
$login_pwd = $_VAL['pwd'];
$login_pwd = md5($_VAL['pwd']);
$sql = "select * from user where login_name = '{$login_name}' and login_pwd = '{$login_pwd}' and isdel = '0'";
$info = find($sql);
if(!empty($info)){
Expand Down Expand Up @@ -44,4 +44,4 @@
</div>
</div>
</div>
<!--登录与退出end-->
<!--登录与退出end-->

0 comments on commit 34e4f8c

Please sign in to comment.