コード例 #1
0
 public function logout()
 {
     $success = Authent::logout();
     $vars = array('title' => Lang::_('Logout'), 'isPost' => true, 'success' => $success);
     return $this->render('authent', $vars);
 }
コード例 #2
0
 public function checkLogin($remember_me = false)
 {
     $result = Db::selectOne('SELECT * FROM user WHERE email = :email', array('email' => $this->email));
     if (!empty($result)) {
         $user = new User($result);
         $crypted_password = $user->password;
         if (password_verify($this->password, $crypted_password)) {
             if (!empty($remember_me)) {
                 Authent::setRememberMe($user->id);
             }
             return $user->login();
         }
     }
     return false;
 }
コード例 #3
0
 public function logout()
 {
     $success = Authent::logout();
     $vars = array('title' => Lang::_('Logout'), 'isPost' => true, 'success' => $success);
     return $this->response->redirect(ROOT_HTTP . 'trombino');
     //return $this->render('authent', $vars);
 }