From 3481b5774a0377c10402d4e22d279fde80da9b0f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 13 May 2019 01:41:49 -0400 Subject: [PATCH] [windowsphonepush] Move Authentication::setAuthenticatedSessionForUser to Session::setAuthenticatedForUser --- windowsphonepush/windowsphonepush.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windowsphonepush/windowsphonepush.php b/windowsphonepush/windowsphonepush.php index 65fcc357..30c6cf60 100644 --- a/windowsphonepush/windowsphonepush.php +++ b/windowsphonepush/windowsphonepush.php @@ -29,11 +29,11 @@ use Friendica\App; use Friendica\Content\Text\BBCode; use Friendica\Content\Text\HTML; -use Friendica\Core\Authentication; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\PConfig; +use Friendica\Core\Session; use Friendica\Database\DBA; use Friendica\Model\Item; use Friendica\Model\User; @@ -473,7 +473,7 @@ function windowsphonepush_login(App $a) die('This api requires login'); } - Authentication::setAuthenticatedSessionForUser($record); + Session::setAuthenticatedForUser($a, $record); $_SESSION["allow_api"] = true; Hook::callAll('logged_in', $a->user); } -- 2.39.5