Add some formatting to the middleware.
This commit is contained in:
parent
596a2a4103
commit
e0a6ccbad4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user