Skip to content

Commit

Permalink
Activating works again
Browse files Browse the repository at this point in the history
I have added the needed includes to the activate.php file, still has some minor issues with session and activity log
  • Loading branch information
mafen committed Mar 16, 2019
1 parent c71181b commit 241392f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions activate.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php include("includes/header.php"); ?>
<?php require_once("includes/init.php") ?>
<?php include("includes/views/header.php"); ?>

<!-- <?php if ($session->is_signed_in()) {redirect("profile.php");} ?> -->

Expand Down Expand Up @@ -28,4 +29,4 @@

<script src="js/functions.js"></script>

<?php include("includes/footer.php"); ?>
<?php include("includes/views/footer.php"); ?>
2 changes: 1 addition & 1 deletion includes/classes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function verify_user($email, $password) {

$sql = "SELECT * FROM " . self::$db_table . " WHERE ";
$sql .= "email = '{$email}' ";
//$sql .= "AND status = 1 ";
$sql .= "AND status = 1 ";
$sql .= "LIMIT 1";

// Sends the sql into the database, gets a array with the users back, only one because limit 1.
Expand Down

0 comments on commit 241392f

Please sign in to comment.