Move include/security to /src/Core/Authentication.php and /src/Util/Security.php

This commit is contained in:
Jonny Tischbein 2018-10-17 18:58:05 +02:00
parent cb4241af69
commit e7f4dc8454
5 changed files with 16 additions and 13 deletions

View file

@ -30,6 +30,7 @@ use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Addon;
use Friendica\Core\Authentication;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
@ -471,8 +472,7 @@ function windowsphonepush_login(App $a)
die('This api requires login');
}
require_once 'include/security.php';
authenticate_success($record);
Authentication::success($record);
$_SESSION["allow_api"] = true;
Addon::callHooks('logged_in', $a->user);
}