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');