introduced "isadmin" flag to code and registration
This commit is contained in:
@@ -19,6 +19,7 @@ if(isset($_GET['login'])) {
|
||||
$_SESSION['lastName'] = $user['lastName'];
|
||||
$_SESSION['activated'] = $user['activated'];
|
||||
$_SESSION['updated_at'] = $user['updated_at'];
|
||||
$_SESSION['isadmin'] = $user['isadmin'];
|
||||
die('<div class="alert alert-success" role="alert"> successfull. go to: <a href="secure.php">secure page</a></div> <meta http-equiv="refresh" content="0; URL=secure.php">');
|
||||
} else {
|
||||
$errorMessage = '<div class="alert alert-danger" role="alert">somethings wrong (maybe wrong password or wrong user)</div><br>';
|
||||
|
Reference in New Issue
Block a user