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
This commit is contained in:
Hypolite Petovan 2021-10-24 23:17:22 -04:00
parent bcd3cf0bc0
commit 40aaa51050

View file

@ -631,7 +631,9 @@ class App
Model\Profile::openWebAuthInit($token); Model\Profile::openWebAuthInit($token);
} }
$auth->withSession($this); if (!$this->mode->isBackend()) {
$auth->withSession($this);
}
if (empty($_SESSION['authenticated'])) { if (empty($_SESSION['authenticated'])) {
header('X-Account-Management-Status: none'); header('X-Account-Management-Status: none');