Add message feedback after requesting a password reset link
This commit is contained in:
parent
76c1a666ad
commit
0007ffbb74
1 changed files with 3 additions and 5 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue