survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit b66e944b3e13e23b13e5b874134930696f13e679
parent 392bc65a496ba2b1ead0350bb30d9ab40789c33a
Author: John Kubach <johnkubach@gmail.com>
Date:   Wed, 19 Dec 2018 19:33:51 -0500

fix login redirect

if redirected to login page after selecting a survey, the user will be redirected back to the survey after logging in

Diffstat:
Mwebsite/res/login-user.php | 2+-
Mwebsite/takesurvey.php | 5-----
2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/website/res/login-user.php b/website/res/login-user.php @@ -1,7 +1,7 @@ <?php +include_once 'session.php'; if (isset($_POST['submit'])) { - include_once 'session.php'; include '../config.php'; $username = mysqli_real_escape_string($connect, $_POST['username']); diff --git a/website/takesurvey.php b/website/takesurvey.php @@ -1,9 +1,4 @@ <?php -if(!isset($_SESSION['uid'])){ - header("location: login.php?user=notloggedin"); - exit; -} - include_once 'res/session.php'; include_once 'config.php'; include 'res/navbar.php';