introduced "isadmin" flag to code and registration

This commit is contained in:
Thies Mueller
2021-01-10 14:33:06 +01:00
parent d6877f2349
commit 5b5e96f970
4 changed files with 8 additions and 1 deletions

View File

@@ -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>';