]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Delegation.php
fix
[friendica.git] / src / Module / Delegation.php
index d2930317c08ce638aa22b54e10dec3485a33265d..7d2e6867253a4e23d5f1e5bf4760d8c2a7ce70d7 100644 (file)
@@ -3,6 +3,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\App\Authentication;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
@@ -79,7 +80,9 @@ class Delegation extends BaseModule
 
                Session::clear();
 
-               Session::setAuthenticatedForUser(self::getApp(), $user, true, true);
+               /** @var Authentication $authentication */
+               $authentication = self::getClass(Authentication::class);
+               $authentication->setForUser(self::getApp(), $user, true, true);
 
                if ($limited_id) {
                        Session::set('submanage', $original_id);