allo echo without authentication

This commit is contained in:
Uwe Steinmann 2021-11-26 09:43:06 +01:00
parent a4bb363799
commit 248f11653a

View File

@ -2369,7 +2369,7 @@ class Auth { /* {{{ */
* don't even try to authorize. * don't even try to authorize.
*/ */
if($request->getMethod() == 'OPTIONS') { if($request->getMethod() == 'OPTIONS') {
} elseif(!in_array($request->getUri()->getPath(), array('echo', 'login'))) { } elseif(!in_array($request->getUri()->getPath(), array('login')) && substr($request->getUri()->getPath(), 0, 5) != 'echo/') {
$userobj = null; $userobj = null;
if(!empty($this->container->environment['HTTP_AUTHORIZATION']) && !empty($settings->_apiKey) && !empty($settings->_apiUserId)) { if(!empty($this->container->environment['HTTP_AUTHORIZATION']) && !empty($settings->_apiKey) && !empty($settings->_apiUserId)) {
if($settings->_apiKey == $this->container->environment['HTTP_AUTHORIZATION']) { if($settings->_apiKey == $this->container->environment['HTTP_AUTHORIZATION']) {