isLogged()) { if ($auth->login($user, $pass)) { $config = $auth->getAuthConfig(); } else { $auth->authenticate(); } } }