Potential Produkt Increment #83

Merged
mg8220s merged 40 commits from dev into main 2024-12-11 14:16:27 +01:00
Showing only changes of commit 7b78b4865f - Show all commits

View File

@@ -12,7 +12,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// Try to retrieve the user from the username
$user = User::getFromUsername($username);
if ($user->login($password)) {
if ($user && $user->login($password)) {
// Redirect to a protected page if login is successful
header("Location: index.php?login=success");