fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../../../bootstrap.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
use Backend\Models\Password;
|
||||
@@ -25,7 +25,8 @@ if(isset($_POST['login'])){
|
||||
$_SESSION['groupName'] = $groupName;
|
||||
$_SESSION['token'] = $token;
|
||||
$_SESSION['success'] = "You are now logged in";
|
||||
header('location: ../../../Frontend/index.php?login=success');
|
||||
//header('location: ../../../Frontend/index.php?login=success');
|
||||
echo "YES";
|
||||
}
|
||||
else{
|
||||
session_destroy();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../../../bootstrap.php";
|
||||
require_once "Group.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
@@ -8,8 +8,6 @@ use Backend\Models\Password;
|
||||
use Backend\Models\GameJam;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
session_start();
|
||||
|
||||
$groupName = "";
|
||||
$errors = array();
|
||||
|
||||
@@ -45,8 +43,8 @@ if(isset($_POST['regGroup'])){
|
||||
$_SESSION['groupName'] = $groupName;
|
||||
$_SESSION['token'] = $token;
|
||||
$_SESSION['success'] = "You are now logged in";
|
||||
header('location: ../../../Frontend/index.php');
|
||||
header('location: ../../../Frontend/index.html');
|
||||
}else{
|
||||
echo "asdasd";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../../../bootstrap.php";
|
||||
require_once "Group.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
|
||||
Reference in New Issue
Block a user