Changes for #321 because GetRequest() is undefined

This commit is contained in:
the-djmaze 2022-07-19 11:40:50 +02:00
parent 06667c1b36
commit 58bcbc3aad

View file

@ -767,8 +767,8 @@ class ServiceActions
$oAccount = null;
if ($this->oActions->Config()->Get('labs', 'allow_external_login', false)) {
$sEmail = \trim($this->oHttp->GetRequest('Email', ''));
$sPassword = $this->oHttp->GetRequest('Password', '');
$sEmail = \trim($_POST['Email']);
$sPassword = $_POST['Password'];
try
{
@ -785,7 +785,7 @@ class ServiceActions
}
}
if ('json' === \strtolower($this->oHttp->GetRequest('Output', ''))) {
if ('json' === \strtolower($_POST['Output'])) {
\header('Content-Type: application/json; charset=utf-8');
$aResult = array(