diff --git a/Backend/Controllers/Admin/Admin.php b/Backend/Controllers/Admin/Admin.php index 097b9a2..c394c4a 100644 --- a/Backend/Controllers/Admin/Admin.php +++ b/Backend/Controllers/Admin/Admin.php @@ -8,12 +8,3 @@ function isAdmin(): bool return isset($_SESSION['admin']); } -function makeAdminLogin(string $userName) -{ - setcookie("userName", $userName, [ - 'expires' => 0, - 'samesite' => 'Strict', - 'path' => '/' - ]); -} - diff --git a/Backend/Controllers/Admin/AdminLogin.php b/Backend/Controllers/Admin/AdminLogin.php index 08d6a4d..813b3dd 100644 --- a/Backend/Controllers/Admin/AdminLogin.php +++ b/Backend/Controllers/Admin/AdminLogin.php @@ -19,7 +19,6 @@ if(isset($_POST['aLogin'])){ $_SESSION['userName'] = $userName; $_SESSION['admin'] = true; $_SESSION['success'] = "You are now logged in"; - makeAdminLogin($userName); http_response_code(200); }else{ session_destroy(); diff --git a/Backend/Controllers/Group/Logout.php b/Backend/Controllers/Group/Logout.php index bf2e3fe..f8e4552 100644 --- a/Backend/Controllers/Group/Logout.php +++ b/Backend/Controllers/Group/Logout.php @@ -1,9 +1,8 @@ -1, @@ -12,6 +11,5 @@ $cookieCon = array( ); setcookie("groupName", null, $cookieCon); setcookie("groupId", null, $cookieCon); -setcookie("userName", null, $cookieCon); echo http_response_code(200); \ No newline at end of file diff --git a/Frontend/Images/SetupFav.png b/Frontend/Images/SetupFav.png new file mode 100644 index 0000000..e2c7876 Binary files /dev/null and b/Frontend/Images/SetupFav.png differ diff --git a/Frontend/Index.html b/Frontend/Index.html index ae01879..8d7dfd1 100755 --- a/Frontend/Index.html +++ b/Frontend/Index.html @@ -82,15 +82,11 @@ - - + Login - - @@ -124,56 +120,67 @@