create a cookie at signup

This commit is contained in:
RundelhausCode 2021-03-25 09:33:04 +01:00
parent 99fd4e425a
commit 4bdd0d9554
1 changed files with 1 additions and 0 deletions

View File

@ -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"]);