From d46f8f4a4e54f33945130ea2e41cb344b54829e5 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 7 Jul 2023 09:33:51 +0200 Subject: [PATCH] WIP REST API for mail & token auth: fix wrong namespace --- api/src/Auth/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Auth/Token.php b/api/src/Auth/Token.php index 0ead8b4ea8..399746a71e 100644 --- a/api/src/Auth/Token.php +++ b/api/src/Auth/Token.php @@ -51,7 +51,7 @@ class Token extends APi\Storage\Base return null; // not a token } try { - $log_passwd = substr($token, 0, strlen(Auth\Token::PREFIX)+1+strlen($matches[1])); + $log_passwd = substr($token, 0, strlen(self::PREFIX)+1+strlen($matches[1])); $log_passwd .= str_repeat('*', strlen($token)-strlen($log_passwd)); $data = self::getInstance()->read([ 'token_id' => $matches[1],