示例#1
0
 public function loginAction()
 {
     try {
         session_start();
         $master = new Master();
         if (!$master->is_matching_pass($this->request->getPost('password'))) {
             throw new Exception('パスワードが一致しません');
         }
         $_SESSION["admin_mode"] = true;
         header("Location: " . ROOT_URL . "/admin/mainmenu/");
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }