Add some formatting to the middleware.
This commit is contained in:
parent
596a2a4103
commit
e0a6ccbad4
@ -18,8 +18,9 @@ class VerifyPasswordMiddleware extends Middleware
|
|||||||
$requestData = $request->getParsedBody();
|
$requestData = $request->getParsedBody();
|
||||||
|
|
||||||
if ($requestData['password'] !== $requestData['checked_password']) {
|
if ($requestData['password'] !== $requestData['checked_password']) {
|
||||||
$this->session->getFlash()
|
$this->session
|
||||||
->add('error', "Passwords do not match.");
|
->getFlash()
|
||||||
|
->add('error', "Passwords do not match.");
|
||||||
return $response->withStatus(400);
|
return $response->withStatus(400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user