Move include/auth to Login::sessionAuth
- Remove include/auth
This commit is contained in:
parent
2dc598ed5b
commit
c238154a6e
3 changed files with 5 additions and 204 deletions
|
@ -14,6 +14,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Module\Login;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
|
@ -148,9 +149,7 @@ if ((x($_GET, 'zrl')) && (!$install && !$maintenance)) {
|
|||
|
||||
// header('Link: <' . System::baseUrl() . '/amcd>; rel="acct-mgmt";');
|
||||
|
||||
if (x($_COOKIE["Friendica"]) || (x($_SESSION, 'authenticated')) || (x($_POST, 'auth-params')) || ($a->module === 'login')) {
|
||||
require "include/auth.php";
|
||||
}
|
||||
Login::sessionAuth();
|
||||
|
||||
if (! x($_SESSION, 'authenticated')) {
|
||||
header('X-Account-Management-Status: none');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue