This commit is contained in:
Jay Trees 2022-03-01 11:41:10 +01:00
parent 286d723c42
commit ba93aab8b1

View file

@ -32,7 +32,10 @@ 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');
$page->messages[] = Page::error(
'We could not find a user with the credential combination you provided.',
'Invalid credentials'
);
}
}
@ -58,7 +61,10 @@ if (isset($_POST['reset'], $_POST['email'])) {
$emailReset = new Email($_POST['email'], 'Password reset link', $mjml);
$emailReset->send();
$page->messages[] = Page::info('If I can find a match for this email address, a password reset link will be sent to it.', 'Info');
$page->messages[] = Page::info(
'If I can find a match for this email address, a password reset link will be sent to it.',
'Info'
);
}
}