fix: store username when using remember_token

This commit is contained in:
Baoshuo Ren 2023-02-03 17:03:58 +08:00
parent 92793969af
commit da02425215
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -92,7 +92,9 @@ class Auth {
$myUser = UOJUser::query($username);
if ($myUser['remember_token'] !== $remember_token) {
$myUser = null;
return;
}
$_SESSION['username'] = $myUser['username'];
return;
}
}