Skip to content

Commit

Permalink
Update loader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kasuganosoras committed Oct 25, 2021
1 parent ee9696f commit 9551f3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pigeon/loader.php
Expand Up @@ -9,7 +9,7 @@
// 实例化 Pigeon
$pigeon = new Pigeon();
// 生成 SESSION ID
$pigeon->CreateSession();
$pigeon->createSession();
if(!isset($_SESSION['seid'])) {
$_SESSION['seid'] = $pigeon->guid();
}
Expand Down Expand Up @@ -67,7 +67,7 @@
if(password_verify($_POST['password'], $rs['password'])) {
if($error == '') {
mysqli_query($pigeon->conn, "UPDATE `users` SET `latest_ip`='{$login_ip}', `latest_time`='" . time() . "' WHERE `id`='{$rs['id']}'");
$pigeon->UpdateSessionId();
$pigeon->updateSessionId();
$_SESSION['user'] = $rs['username'];
$_SESSION['email'] = $rs['email'];
$_SESSION['token'] = $rs['token'];
Expand Down Expand Up @@ -105,7 +105,7 @@
if(password_verify($_POST['password'], $rs['password'])) {
if($error == '') {
mysqli_query($pigeon->conn, "UPDATE `users` SET `latest_ip`='{$login_ip}', `latest_time`='" . time() . "' WHERE `id`='{$rs['id']}'");
$pigeon->UpdateSessionId();
$pigeon->updateSessionId();
$_SESSION['user'] = $rs['username'];
$_SESSION['email'] = $rs['email'];
$_SESSION['token'] = $rs['token'];
Expand Down

0 comments on commit 9551f3a

Please sign in to comment.