mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Method 'GetRequest' not found in \MailSo\Base\Http #585
This commit is contained in:
parent
a6988db8ce
commit
028f4ecb08
1 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue