public function logout() { Load::lib('SdAuth'); SdAuth::logout(); View::template('login2'); Router::redirect(''); }
public function logout() { Load::lib('SdAuth'); SdAuth::logout(); $this->render(null, 'login2'); $this->redirect(''); }
/** * @param string $_error */ public static function setError($error) { self::$_error = $error; }
public function login() { $this->title = 'Iniciar sesión'; Load::lib('SdAuth'); if (!SdAuth::isLogged()) { if (Input::hasPost('txt_login')) { Flash::warning(SdAuth::getError()); } Input::delete('txt_password'); return FALSE; } else { return Router::redirect('/'); } }
public function logout() { Load::lib('SdAuth'); SdAuth::logout(); return Router::redirect('../'); }