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) {
|
if ($loginOk) {
|
||||||
$_SESSION['loggedIn'] = true;
|
$_SESSION['loggedIn'] = true;
|
||||||
$_SESSION['username'] = $username;
|
$_SESSION['user_id'] = $username;
|
||||||
header("Location: ./admin.php");
|
header("Location: ./admin.php");
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user