WIP REST API for mail & token auth: fix wrong namespace

This commit is contained in:
ralf 2023-07-07 09:33:51 +02:00
parent 961bc79885
commit d46f8f4a4e

View File

@ -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],