public function postSignIn($request, $response)
{
$auth = $this->auth->attempt($request->getParam('email'), $request->getParam('password'));
if (!$auth) {
$this->flash->addMessage('error', 'Could not sign you in with those details');
return $response->withRedirect($this->router->pathFor('auth.signin'));
}
return $response->withRedirect($this->router->pathFor('home'));
}