mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
allo echo without authentication
This commit is contained in:
parent
a4bb363799
commit
248f11653a
|
@ -2367,9 +2367,9 @@ class Auth { /* {{{ */
|
|||
}
|
||||
/* The preflight options request doesn't have authorization in the header. So
|
||||
* don't even try to authorize.
|
||||
*/
|
||||
*/
|
||||
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;
|
||||
if(!empty($this->container->environment['HTTP_AUTHORIZATION']) && !empty($settings->_apiKey) && !empty($settings->_apiUserId)) {
|
||||
if($settings->_apiKey == $this->container->environment['HTTP_AUTHORIZATION']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user