Deletes auth controller and view if theme should not include auth functionalities.

@return $this
346426
private function authFunctionality()
    {
        if($this->getAttribute('activate')) {
            File::deleteDirectory($this->destinationDir.'/controllers/Auth');
            File::deleteDirectory($this->destinationDir.'/views/auth');
        }
        return $this;
    }
916737
public function delete()
    {     
        Util::delTree( $this->getPath() );
        foreach (Server::enum() as $s) {
            $tname = str_replace( THEME_DIR.'/', '', $s->templateDir );
            if ($tname == $this->name) {
                $s->setTheme();
            }
        }
    }
42185
public function logout()
    {
        $controller = $this->getController();
        $result = $this->getAuthenticationService()->clearIdentity(
            $controller->request,
            $controller->response
        );

        $controller->request = $result['request'];
        $controller->response = $result['response'];

        $this->dispatchEvent('Authentication.logout', [], $controller);

        $logoutRedirect = $this->getConfig('logoutRedirect');
        if ($logoutRedirect === false) {
            return null;
        }

        return Router::normalize($logoutRedirect);
    }
654538
public function active()
    {
        if(!\Yii::$app->user->isGuest && !\Yii::$app->user->identity->isAdmin)
        {
            $this->andWhere(['deleted_at' => NULL]);
        }
        return $this;
    }
483305
public function actionDisconnect()
    {
        $providerHandle = craft()->request->getParam('provider');

        // reset token
        craft()->httpSession->remove('oauth.console.token.'.$providerHandle);

        // set notice
        craft()->userSession->setNotice(Craft::t("Disconnected."));

        // redirect
        $redirect = craft()->request->getUrlReferrer();
        $this->redirect($redirect);
    }
869034
public function userExit()
  {
    if (isset($_SESSION['auth'])) {
      $load_session = R::findOne('authorization', 'token = ?', array($_SESSION['auth']['token']));

      if ($load_session) {
        R::trash($load_session);
      }
    }

    unset($_SESSION['auth']);

    if (isset($_COOKIE['auth'])) {
      setcookie('auth','', time() - 3600 * 24 * 7);
      ob_end_flush();
    }

    redirect('/');
  }
925214
public function delete()
	{
		if( $this->item && $this->item->getId() ) {
			\Aimeos\MShop::create( $this->getContext(), 'customer' )->deleteItem( $this->item->getId() );
		}

		return $this;
	}
757846
public function removesessionAction()
    {
        $success = false;
        $request = $this->getEvent()->getRequest();
        if ($request instanceof Request && $request->isPost()) {
            $containerName = $request->getPost('containerName', 'Default');
            $keysession = $request->getPost('keysession', '');

            $success = $this->sessionManager
                            ->sessionSetting($containerName, $keysession);
        }

        return new JsonModel([
            'success' => $success,
        ]);
    }
860112
public function destroy()
	{
		// do we have something to destroy?
		if ( ! empty($this->keys))
		{
			// delete the key from the redis server
			$this->redis->del($this->keys['session_id']);
		}

		parent::destroy();

		return $this;
	}
829161
public function actionClear()
    {
        OAuth2AuthorizationCode::deleteAll(['<', 'expires', time()]);
        OAuth2RefreshToken::deleteAll(['<', 'expires', time()]);
        OAuth2AccessToken::deleteAll(['<', 'expires', time()]);
    }
578895
public function forAuthorization()
    {
        $this->router->group(['middleware' => ['web', 'auth']], function ($router) {
            $router->get('/authorize', [
                'uses' => 'AuthorizationController@authorize',
            ]);

            $router->post('/authorize', [
                'uses' => 'ApproveAuthorizationController@approve',
            ]);

            $router->delete('/authorize', [
                'uses' => 'DenyAuthorizationController@deny',
            ]);
        });
    }
645799
public function logout()
	{
		$this->user = \Config::get('simpleauth.guest_login', true) ? static::$guest_login : false;
		\Session::delete('username');
		\Session::delete('login_hash');
		return true;
	}
1042299
public function onRemoveTheme()
    {
        if ($themeCode = post('code')) {

            ThemeManager::instance()->deleteTheme($themeCode);

            Flash::success(trans('cms::lang.theme.delete_theme_success'));
        }

        return Redirect::refresh();
    }
46267
public function sweepProvider()
    {
        $user = $this->getUser();
        $hybridAuth = $this->getHybridAuth();
        // first test, if there is a connection at all
        // that prevents an authentification just for to logout
        if ($hybridAuth->isConnectedWith($this->providerKey)) {
            $this->getAdapter($this->providerKey)->logout();
        }
        $user->removeSessionData($this->providerKey);
        unset($this->adapter);
        return $this;
    }
1244229
public function disableAction()
    {
        $themeName = $this->params()->fromRoute('theme');
        if (! $themeName) {
            $this->flashMessenger()->addMessage(
                $this->scTranslate('Theme was not specified.')
            );
            return $this->redirect()
                ->toRoute('sc-admin/theme')
                ->setStatusCode(303);
        }
        $service = $this->getThemeService();
        if (! $service->disableTheme($themeName)) {
            foreach ($service->getMessages() as $message) {
                $this->flashMessenger()->addMessage($message);
            }
        }

        return $this->redirect()->toRoute('sc-admin/theme');
    }
44721
public function authUser()
    {
        $session = $this->Controller->request->session();
        if ($session->check('Auth.CakeAdmin')) {
            return $session->read('Auth.CakeAdmin');
        }
        return false;
    }
1147951
public function deleteAction()
    {
        $themeId = $this->getEvent()->getRouteMatch()->getParam('themeId');
        $theme = $this->getAdminThemeService()->findById($themeId);
        $title = $theme->getTitle();
        $this->getAdminThemeService()->remove($theme);
        $this->flashMessenger()->addMessage('The theme "'.$title.'"has been deleted');

        return $this->redirect()->toRoute('admin/playgrounddesign_themeadmin');
    }