diff --git a/web/app/models/Auth.php b/web/app/models/Auth.php index 20061c8..0c7e71d 100644 --- a/web/app/models/Auth.php +++ b/web/app/models/Auth.php @@ -92,7 +92,9 @@ class Auth { $myUser = UOJUser::query($username); if ($myUser['remember_token'] !== $remember_token) { $myUser = null; + return; } + $_SESSION['username'] = $myUser['username']; return; } }