From 0007ffbb7429b39387a5d066d18d4fc5f861b5bb Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Tue, 1 Mar 2022 11:13:41 +0100 Subject: [PATCH] Add message feedback after requesting a password reset link --- src/pages/login.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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();

title ?>

- + messages() ?>