]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_poll.php
Refactor "Authentication" class with four main methods:
[friendica.git] / mod / dfrn_poll.php
index ca60cc87a100f07dca83f88395f8ac8f4cf39d27..892aecacb7ec463dce85cbaffc55ec38a606a9f4 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 use Friendica\App;
+use Friendica\BaseObject;
+use Friendica\Core\Authentication;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
@@ -20,7 +22,9 @@ use Friendica\Util\XML;
 
 function dfrn_poll_init(App $a)
 {
-       Login::sessionAuth();
+       /** @var Authentication $authentication */
+       $authentication = BaseObject::getClass(Authentication::class);
+       $authentication->withSession($a, $_COOKIE);
 
        $dfrn_id         =  $_GET['dfrn_id']         ?? '';
        $type            = ($_GET['type']            ?? '') ?: 'data';