Esempio n. 1
0
 public function action_login()
 {
     $d = $this->verify($this->get_form());
     if (!$d) {
         $this->action_index();
         return;
     }
     if (!Model_Db_Admin::login($d['email'], $d['password'], $d['remember'])) {
         $this->msg('メールアドレスまたはパスワードが違います');
         $this->action_index();
         return;
     }
     return Response::redirect('index');
 }