Add some formatting to the middleware.

This commit is contained in:
Dave Smith-Hayes 2024-06-15 21:51:10 -04:00
parent 596a2a4103
commit e0a6ccbad4

View File

@ -18,7 +18,8 @@ class VerifyPasswordMiddleware extends Middleware
$requestData = $request->getParsedBody();
if ($requestData['password'] !== $requestData['checked_password']) {
$this->session->getFlash()
$this->session
->getFlash()
->add('error', "Passwords do not match.");
return $response->withStatus(400);
}