Skip to content

Commit 713c849

Browse files
authored
Update login-hustoj.php
1 parent dcc33fd commit 713c849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trunk/web/include/login-hustoj.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ function check_login($user_id,$password){
3535
return false;
3636
}//如遇机器故障,可经管理员后台指定新的ip来允许登陆。
3737
}
38-
$sql="INSERT INTO `loginlog`(user_id,password,ip,time) VALUES(?,'login ok',?,NOW())";
39-
pdo_query($sql,$user_id,$ip);
38+
4039
$sql="UPDATE users set accesstime=now(),ip=? where user_id=?";
4140
pdo_query($sql,$ip,$user_id);
4241
return $user_id;
@@ -45,3 +44,4 @@ function check_login($user_id,$password){
4544
return false;
4645
}
4746
?>
47+

0 commit comments

Comments
 (0)