made dashboard load
user_id never set so no access possible. Fixed that
This commit is contained in:
@@ -23,7 +23,7 @@ if (is_array($users)) {
|
||||
|
||||
if ($loginOk) {
|
||||
$_SESSION['loggedIn'] = true;
|
||||
$_SESSION['username'] = $username;
|
||||
$_SESSION['user_id'] = $username;
|
||||
header("Location: ./admin.php");
|
||||
exit;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user