Move Authentication methods to class "Authentication"

This commit is contained in:
nupplaPhil 2019-12-03 21:18:26 +01:00
parent 5bb63e59e0
commit 18a3d18ba6
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 219 additions and 220 deletions

View file

@ -8,6 +8,7 @@ use Exception;
use Friendica\App\Arguments;
use Friendica\App\BaseURL;
use Friendica\App\Page;
use Friendica\Core\Authentication;
use Friendica\Core\Config\Cache\ConfigCache;
use Friendica\Core\Config\Configuration;
use Friendica\Core\Config\PConfiguration;
@ -717,7 +718,7 @@ class App
Model\Profile::openWebAuthInit($token);
}
Login::sessionAuth();
Authentication::sessionAuth();
if (empty($_SESSION['authenticated'])) {
header('X-Account-Management-Status: none');