From 4bdd0d955490d93f28b9d90e6e416ec9794a757f Mon Sep 17 00:00:00 2001 From: RundelhausCode Date: Thu, 25 Mar 2021 09:33:04 +0100 Subject: [PATCH] create a cookie at signup --- Backend/Controllers/Group/SigningUp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Backend/Controllers/Group/SigningUp.php b/Backend/Controllers/Group/SigningUp.php index ff2599b..40101bc 100644 --- a/Backend/Controllers/Group/SigningUp.php +++ b/Backend/Controllers/Group/SigningUp.php @@ -46,6 +46,7 @@ if(isset($_POST['regGroup'])){ $_SESSION['groupName'] = $groupName; $_SESSION['token'] = $token; $_SESSION['success'] = "You are now logged in"; + makeLogin($groupName,$group->id); http_response_code(201); echo json_encode(["message" => "you are login"]);