[windowsphonepush] Move Authentication::setAuthenticatedSessionForUser to Session::setAuthenticatedForUser #856

Merged
MrPetovan merged 1 commit from task/two-factor-authentication into develop 2019-05-14 10:02:17 +02:00

View file

@ -29,11 +29,11 @@
use Friendica\App; use Friendica\App;
use Friendica\Content\Text\BBCode; use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML; use Friendica\Content\Text\HTML;
use Friendica\Core\Authentication;
use Friendica\Core\Hook; use Friendica\Core\Hook;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Core\Logger; use Friendica\Core\Logger;
use Friendica\Core\PConfig; use Friendica\Core\PConfig;
use Friendica\Core\Session;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Model\Item; use Friendica\Model\Item;
use Friendica\Model\User; use Friendica\Model\User;
@ -473,7 +473,7 @@ function windowsphonepush_login(App $a)
die('This api requires login'); die('This api requires login');
} }
Authentication::setAuthenticatedSessionForUser($record); Session::setAuthenticatedForUser($a, $record);
$_SESSION["allow_api"] = true; $_SESSION["allow_api"] = true;
Hook::callAll('logged_in', $a->user); Hook::callAll('logged_in', $a->user);
} }