Method 'GetRequest' not found in \MailSo\Base\Http #585

This commit is contained in:
the-djmaze 2022-10-31 12:20:00 +01:00
parent a6988db8ce
commit 028f4ecb08

View file

@ -817,14 +817,14 @@ class ServiceActions
$sResult = ''; $sResult = '';
$oConfig = $this->oActions->Config(); $oConfig = $this->oActions->Config();
$sKey = $oConfig->Get('labs', 'external_sso_key', ''); $sKey = $oConfig->Get('labs', 'external_sso_key', '');
$sEmail = \trim($this->oHttp->GetRequest('Email', '')); $sEmail = \trim($_POST['Email']);
$sPassword = $this->oHttp->GetRequest('Password', ''); $sPassword = $_POST['Password'];
if ($oConfig->Get('labs', 'allow_external_sso', false) if ($oConfig->Get('labs', 'allow_external_sso', false)
&& $sEmail && $sPassword && $sEmail && $sPassword
&& $sKey && $this->oHttp->GetRequest('SsoKey', '') == $sKey && $sKey && $_POST['SsoKey'] == $sKey
) { ) {
$sResult = \RainLoop\Api::CreateUserSsoHash($sEmail, $sPassword); $sResult = \RainLoop\Api::CreateUserSsoHash($sEmail, $sPassword);
if ('json' == \strtolower($this->oHttp->GetRequest('Output', 'Plain'))) { if ('json' == \strtolower($_POST['Output'] ?? 'Plain')) {
\header('Content-Type: application/json; charset=utf-8'); \header('Content-Type: application/json; charset=utf-8');
$sResult = \json_encode(array( $sResult = \json_encode(array(
'Action' => 'ExternalSso', 'Action' => 'ExternalSso',