frontend data cookie and optional key word for NewGameJam.php
This commit is contained in:
@@ -22,9 +22,9 @@ if(isset($_POST['login'])){
|
||||
$groupPassword = Password::firstWhere('group_id', $group->id);
|
||||
$groupPassword->remember_token = $token;
|
||||
if($groupPassword->save()){
|
||||
$_SESSION['groupName'] = $groupName;
|
||||
$_SESSION['token'] = $token;
|
||||
$_SESSION['success'] = "You are now logged in";
|
||||
makeLogin($groupName,$group->id);
|
||||
//header('location: ../../../Frontend/index.php?login=success');
|
||||
//exit();
|
||||
http_response_code(200);
|
||||
|
||||
Reference in New Issue
Block a user