Skip to content
Permalink
Browse files
Update loader.php
  • Loading branch information
kasuganosoras committed Oct 25, 2021
1 parent ee9696f commit 9551f3a91814ab9809394c374c117b3bf3185e4a
Showing with 3 additions and 3 deletions.
  1. +3 −3 pigeon/loader.php
@@ -9,7 +9,7 @@
// 实例化 Pigeon
$pigeon = new Pigeon();
// 生成 SESSION ID
$pigeon->CreateSession();
$pigeon->createSession();
if(!isset($_SESSION['seid'])) {
$_SESSION['seid'] = $pigeon->guid();
}
@@ -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'];
@@ -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'];

0 comments on commit 9551f3a

Please sign in to comment.