mirror of
https://github.com/friendica/friendica
synced 2024-11-18 11:43:41 +00:00
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:
parent
bcd3cf0bc0
commit
40aaa51050
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue