let framework know we are a popup

stops setting data-sidebox and egw.js fails because there is no sidebox
This commit is contained in:
ralf 2023-02-22 09:01:40 +01:00
parent b1c4c54adc
commit bf6891d06a

View File

@ -191,6 +191,7 @@ class OpenIDConnectClient extends \Jumbojett\OpenIDConnectClient
// authenticate might not return, because it redirected // authenticate might not return, because it redirected
if ($this->authenticate()) if ($this->authenticate())
{ {
$_GET['cd'] = 'popup'; // let framework know we are a popup
array_unshift($success_params, $this); array_unshift($success_params, $this);
return call_user_func_array($success, $success_params); return call_user_func_array($success, $success_params);
} }
@ -198,6 +199,7 @@ class OpenIDConnectClient extends \Jumbojett\OpenIDConnectClient
catch(OpenIDConnectClientException $e) { catch(OpenIDConnectClientException $e) {
_egw_log_exception($e); _egw_log_exception($e);
} }
$_GET['cd'] = 'popup'; // let framework know we are a popup
// authentication failure or exception // authentication failure or exception
array_unshift($failure_params, $e ?? false); array_unshift($failure_params, $e ?? false);
call_user_func_array($failure, $failure_params); call_user_func_array($failure, $failure_params);