mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 10:18:41 +00:00
fix: store username when using remember_token
This commit is contained in:
parent
92793969af
commit
da02425215
@ -92,7 +92,9 @@ class Auth {
|
|||||||
$myUser = UOJUser::query($username);
|
$myUser = UOJUser::query($username);
|
||||||
if ($myUser['remember_token'] !== $remember_token) {
|
if ($myUser['remember_token'] !== $remember_token) {
|
||||||
$myUser = null;
|
$myUser = null;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
$_SESSION['username'] = $myUser['username'];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user