App\Controllers\Auth\AuthController::postSignIn PHP Method

postSignIn() public method

public postSignIn ( $request, $response )
    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'));
    }