survey_seahorse

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

commit cc191201ee578e0fca597927e456dc063f824301
parent 920d6273c51101b22cd192d1aded0cf2da4cf2c0
Author: John Kubach <johnkubach@gmail.com>
Date:   Wed, 12 Dec 2018 19:06:23 -0500

fixed admin account creation

Diffstat:
Mwebsite/res/register-admin.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/res/register-admin.php b/website/res/register-admin.php @@ -28,7 +28,7 @@ if (isset($_POST['admin'])) { $date = date("Y-m-d H:i:s"); $sql = "INSERT INTO user (email, username, password, admin, registration_date) - VALUES ('$email', '$username', '$hashPass', 1, '$date');"; + VALUES ('$email', '$username', '$hashPass', b'1', '$date');"; mysqli_query($connect, $sql) or die(mysqli_error($connect)); header("Location: ../controlpanel.php?signup=success");