]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Restructure Lock to follow new paradigm
[friendica.git] / src / App.php
index 5c85c9f26d46ad29a7260c44d117bee4676750fd..cd217c34e7ec715212962b6ed530e759b43d5a71 100644 (file)
@@ -25,10 +25,10 @@ use Exception;
 use Friendica\App\Arguments;
 use Friendica\App\BaseURL;
 use Friendica\App\Module;
-use Friendica\Factory\ConfigFactory;
+use Friendica\Core\Config\Factory\ConfigFactory;
 use Friendica\Module\Maintenance;
 use Friendica\Security\Authentication;
-use Friendica\Core\Config\Cache;
+use Friendica\Core\Config\Cache\Cache;
 use Friendica\Core\Config\IConfig;
 use Friendica\Core\PConfig\IPConfig;
 use Friendica\Core\L10n;
@@ -39,7 +39,6 @@ use Friendica\Model\Contact;
 use Friendica\Model\Profile;
 use Friendica\Module\Special\HTTPException as ModuleHTTPException;
 use Friendica\Network\HTTPException;
-use Friendica\Util\ConfigFileLoader;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\HTTPSignature;
 use Friendica\Util\Profiler;
@@ -631,7 +630,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');