示例#1
0
 public function index($token = null)
 {
     if ((new SecureSiteBase())->loginRequest($_POST) == true) {
         //Process the login form
         header("Location: " . BASE_URL . "/home/index");
         exit;
     }
     $login = new SecureSiteBase();
     $login->setFramework(new SMVC\SecureSite\Bootstrap\SecurityForms());
     $this->view('pages/landingPage', array('form' => $login->loginForm(array('token' => $token))));
 }