added login check to the pages which add entries to the tables

This commit is contained in:
2022-06-09 20:47:50 +02:00
parent 80a03ec557
commit 07becd4502
4 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
$phash = generate_password_hash($password, $user_data['salt']);
if($user_data['password'] === $phash) {
$_SESSION['user_id'] = $user_data['user_id'];
$_SESSION['user_group'] = $user_data['user_group'];
header("Location: index.php");
die;
} else {