diff --git a/src/pages/login.php b/src/pages/login.php index b50abe9f..4b5f85dd 100644 --- a/src/pages/login.php +++ b/src/pages/login.php @@ -31,6 +31,8 @@ if (isset($_POST['login'], $_POST['email'], $_POST['password'])) { if ($success) { $_SESSION['user'] = $user; + } else { + $page->messages[] = Page::error('We could not find a user with the credential combination you provided.', 'Invalid credentials'); } } @@ -68,11 +70,7 @@ $page->navigation();