create a cookie at signup
This commit is contained in:
parent
99fd4e425a
commit
4bdd0d9554
|
@ -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"]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue