aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r--lib/public/Util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 179d4066c9b..4cee9addf10 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -13,6 +13,7 @@ namespace OCP;
use bantu\IniGetWrapper\IniGetWrapper;
use OC\AppScriptDependency;
use OC\AppScriptSort;
+use OC\Security\CSRF\CsrfTokenManager;
use OCP\L10N\IFactory;
use OCP\Mail\IMailer;
use OCP\Share\IManager;
@@ -394,7 +395,7 @@ class Util {
*/
public static function callRegister() {
if (self::$token === '') {
- self::$token = \OC::$server->getCsrfTokenManager()->getToken()->getEncryptedValue();
+ self::$token = \OC::$server->get(CsrfTokenManager::class)->getToken()->getEncryptedValue();
}
return self::$token;
}