for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Disqus plugin for Craft CMS 3.x
*
* Integrates the Disqus commenting system into Craft 3 websites, including
* Single Sign On (SSO) and custom login/logout URLs
* @link https://nystudio107.com
* @copyright Copyright (c) 2017 nystudio107
*/
namespace nystudio107\disqus\controllers;
use Craft;
use craft\web\Controller;
use yii\web\Response;
* @author nystudio107
* @package Disqus
* @since 1.0.0
class DefaultController extends Controller
{
// Protected Properties
// =========================================================================
protected array|bool|int $allowAnonymous = ['logout-redirect'];
// Public Methods
* @return Response
public function actionLogoutRedirect(): Response
Craft::$app->getUser()->logout(false);
return $this->redirect($_SERVER['HTTP_REFERER']);
}