Add message feedback after requesting a password reset link

This commit is contained in:
Jay Trees 2022-03-01 11:13:41 +01:00
parent 76c1a666ad
commit 0007ffbb74

View file

@ -31,6 +31,8 @@ if (isset($_POST['login'], $_POST['email'], $_POST['password'])) {
if ($success) { if ($success) {
$_SESSION['user'] = $user; $_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();
<div class="ui container"> <div class="ui container">
<h1 class="ui header"><?= $page->title ?></h1> <h1 class="ui header"><?= $page->title ?></h1>
<?php <?= $page->messages() ?>
if (isset($success) && !$success) {
echo Page::error('Invalid credentials!', 'Error');
}
?>
<div class="ui segment"> <div class="ui segment">
<div class="ui divided relaxed stackable two column grid"> <div class="ui divided relaxed stackable two column grid">