Skip to content

Commit

Permalink
fix loginuserpass error handling for rate limit message
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jul 2, 2024
1 parent a618e58 commit fbf1a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) %}
<p class="mdl-card__supporting-text mdl-color-text--red error">
<i class="material-icons">error</i>

Expand Down
2 changes: 1 addition & 1 deletion modules/silauth/src/Auth/Source/auth/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected function setErrorBlockedByRateLimit(WaitTime $waitTime): void
}
}

$this->setError($errorCode, ['{number}' => $number]);
$this->setError($errorCode, ['%number%' => $number]);
}

protected function setErrorGenericTryLater(): void
Expand Down

0 comments on commit fbf1a21

Please sign in to comment.