From ba93aab8b1562980c539a7c12e73900b3ec72364 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Tue, 1 Mar 2022 11:41:10 +0100 Subject: [PATCH] Refactor --- src/pages/login.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/login.php b/src/pages/login.php index a4b92083..53301b18 100644 --- a/src/pages/login.php +++ b/src/pages/login.php @@ -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' + ); } }