]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/BasicAuth.php
Merge pull request #12277 from nupplaphil/mod/fbrowser
[friendica.git] / src / Security / BasicAuth.php
index 7b6a6b082502d982e0827141434a7c31df437b84..7c3f3cc9c4b5e5fba8c6e4de7459cfaf56603479 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,7 +24,6 @@ namespace Friendica\Security;
 use Exception;
 use Friendica\Core\Hook;
 use Friendica\Core\Logger;
-use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\User;
@@ -191,7 +190,7 @@ class BasicAuth
 
                Hook::callAll('logged_in', $record);
 
-               self::$current_user_id = local_user();
+               self::$current_user_id = DI::userSession()->getLocalUserId();
 
                return self::$current_user_id;
        }