diff --git a/modules/material/themes/material/silauth/loginuserpass.twig b/modules/material/themes/material/silauth/loginuserpass.twig index 9b7beb2..7f72eca 100644 --- a/modules/material/themes/material/silauth/loginuserpass.twig +++ b/modules/material/themes/material/silauth/loginuserpass.twig @@ -91,7 +91,7 @@ {% if errorcode ?? '' == 'WRONGUSERPASS' %} {% set errorMessageKey = errorparams[1] ?? '{login:error_wronguserpass}' %} {% set errorMessageTokens = errorparams[2] ?? null %} - {% set message = errorMessageKey|trans({errorMessageKey, errorMessageTokens}) %} + {% set message = errorMessageKey|trans(errorMessageTokens) %}
error diff --git a/modules/silauth/src/Auth/Source/auth/Authenticator.php b/modules/silauth/src/Auth/Source/auth/Authenticator.php index 654c462..7350178 100644 --- a/modules/silauth/src/Auth/Source/auth/Authenticator.php +++ b/modules/silauth/src/Auth/Source/auth/Authenticator.php @@ -325,7 +325,7 @@ protected function setErrorBlockedByRateLimit(WaitTime $waitTime): void } } - $this->setError($errorCode, ['{number}' => $number]); + $this->setError($errorCode, ['%number%' => $number]); } protected function setErrorGenericTryLater(): void