public function logout() { $success = Authent::logout(); $vars = array('title' => Lang::_('Logout'), 'isPost' => true, 'success' => $success); return $this->render('authent', $vars); }
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; }
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); }