1
0
mirror of synced 2025-12-28 00:23:25 +00:00

feat(stops) caching stops

This commit is contained in:
Valentin
2024-06-14 16:59:36 +02:00
parent 1d20fd7815
commit cf5f96f47b
7 changed files with 79 additions and 57 deletions

View File

@@ -12,6 +12,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$_SESSION['first_name'] = $user['first_name'];
$_SESSION['is_admin'] = $user['is_admin'];
header("Location: /");
$log = $conn->prepare("INSERT INTO logs (userId, date) VALUES (:userId, :date)");
$log->bindParam(':userId', $user['id']);
$log->bindParam(':date', date('Y-m-d-H-i-s'));
$log->execute();
} else {
$errorMessage = "Invalid email or password.";
}