diff --git a/plugins/login-external-sso/index.php b/plugins/login-external-sso/index.php index 1dc559382..ded7065db 100644 --- a/plugins/login-external-sso/index.php +++ b/plugins/login-external-sso/index.php @@ -11,7 +11,7 @@ class LoginExternalSsoPlugin extends \RainLoop\Plugins\AbstractPlugin REQUIRED = '2.21.0', CATEGORY = 'Login', LICENSE = 'MIT', - DESCRIPTION = ''; + DESCRIPTION = 'More secure version of Login External with an SSO key'; public function Init() : void { @@ -27,7 +27,7 @@ class LoginExternalSsoPlugin extends \RainLoop\Plugins\AbstractPlugin $sPassword = $_POST['Password']; if ($sEmail && $sPassword && $sKey && $_POST['SsoKey'] == $sKey) { $sResult = \RainLoop\Api::CreateUserSsoHash($sEmail, $sPassword); - if ('json' == \strtolower($_POST['Output'] ?? 'Plain')) { + if ('json' === \strtolower($_POST['Output'] ?? '')) { \header('Content-Type: application/json; charset=utf-8'); echo \json_encode(array( 'Action' => 'ExternalSso', diff --git a/plugins/login-external/index.php b/plugins/login-external/index.php index c1e428c7b..272702931 100644 --- a/plugins/login-external/index.php +++ b/plugins/login-external/index.php @@ -44,7 +44,7 @@ class LoginExternalPlugin extends \RainLoop\Plugins\AbstractPlugin $oLogger && $oLogger->WriteException($oException); } - if ('json' === \strtolower($_POST['Output'])) { + if ('json' === \strtolower($_POST['Output'] ?? '')) { \header('Content-Type: application/json; charset=utf-8'); $aResult = array( 'Action' => 'ExternalLogin',