]> git.mxchange.org Git - friendica-addons.git/commitdiff
[windowsphonepush] Move Authentication::setAuthenticatedSessionForUser to Session...
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 13 May 2019 05:41:49 +0000 (01:41 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 13 May 2019 05:41:49 +0000 (01:41 -0400)
windowsphonepush/windowsphonepush.php

index 65fcc35754fd38b4d620d19cab000a864a7c7d1d..30c6cf60f399642b1e705d5d017a1b6a3400965f 100644 (file)
 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);
 }