From: Hypolite Petovan Date: Mon, 25 Oct 2021 03:17:22 +0000 (-0400) Subject: Skip session authentication for backend modules X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=40aaa5105011daa74b6e77d73943c4a9c3b6db98;p=friendica.git Skip session authentication for backend modules - This was causing errors accessing these modules with an existing session with 2fa enabled while anonymous calls were going through --- diff --git a/src/App.php b/src/App.php index 5c85c9f26d..3ef9bdb4ed 100644 --- a/src/App.php +++ b/src/App.php @@ -631,7 +631,9 @@ class App Model\Profile::openWebAuthInit($token); } - $auth->withSession($this); + if (!$this->mode->isBackend()) { + $auth->withSession($this); + } if (empty($_SESSION['authenticated'])) { header('X-Account-Management-Status: none');