app/Controllers/Auth/AuthController.php
// This method is called when the user submits the form
This method is called when the user submits the form
This method is called when the user submits the form
public function postSignIn($request, $response)
  {
    $auth = $this->auth->attempt(
      $request->getParam('email'),
      $request->getParam('password')
    );
    if (!$auth) {
      $this->flash->addMessage('failure', 'Looks like your email or password didn\'t match');
      return $response->withRedirect($this->router->pathFor('auth.signin'));
    }
    return $response->withRedirect($this->router->pathFor('home'));
  }
public function postSignIn ( $ request , $ response ) { $ auth = $ this -> auth -> attempt ( $ request -> getParam ( 'email' ) , $ request -> getParam ( 'password' ) ) ; if ( ! $ auth ) { $ this -> flash -> addMessage ( 'failure' , 'Looks like your email or password didn\'t match' ) ; return $ response -> withRedirect ( $ this -> router -> pathFor ( 'auth.signin' ) ) ; } return $ response -> withRedirect ( $ this -> router -> pathFor ( 'home' ) ) ; }
This method is called when the user submits the form
This method is called when the user submits the form