Check if login properly

This commit is contained in:
Thomas Rubini 2023-01-17 09:25:47 +01:00
parent 78bf8554b8
commit 4b3a7a2f38
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -80,7 +80,7 @@ final class UserController
session_start();
if(!isset($_SESSION)){
if(!isset($_SESSION) || !isset($_SESSION["USERNAME"])){
echo "301 NOT LOGIN";
return;
}