From e0a6ccbad4ff1815c71fc0934ecf8802fa48677d Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sat, 15 Jun 2024 21:51:10 -0400 Subject: [PATCH] Add some formatting to the middleware. --- .../Infrastructure/Middleware/VerifyPasswordMiddleware.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/Infrastructure/Middleware/VerifyPasswordMiddleware.php b/app/src/Infrastructure/Middleware/VerifyPasswordMiddleware.php index 78d3b59..cdc999f 100644 --- a/app/src/Infrastructure/Middleware/VerifyPasswordMiddleware.php +++ b/app/src/Infrastructure/Middleware/VerifyPasswordMiddleware.php @@ -18,8 +18,9 @@ class VerifyPasswordMiddleware extends Middleware $requestData = $request->getParsedBody(); if ($requestData['password'] !== $requestData['checked_password']) { - $this->session->getFlash() - ->add('error', "Passwords do not match."); + $this->session + ->getFlash() + ->add('error', "Passwords do not match."); return $response->withStatus(400); }