Skip to content

Commit

Permalink
fix incorrect case on errorcode template variable
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 28, 2024
1 parent 849963a commit 6cf5309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/material/themes/material/silauth/loginuserpass.twig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</div>
</div>

{% if errorCode ?? '' == 'WRONGUSERPASS' %}
{% if errorcode ?? '' == 'WRONGUSERPASS' %}
{% set errorMessageKey = errorparams[1] ?? '{login:error_wronguserpass}' %}
{% set errorMessageTokens = errorparams[2] ?? null %}
{% set message = errorMessageKey|trans({errorMessageKey, errorMessageTokens}) %}
Expand All @@ -101,7 +101,7 @@
</p>

<script>
ga('send', 'event', 'error',{{ errorCode|e(js) }}, 'message',{{ message|e(js) }});
ga('send', 'event', 'error',{{ errorcode|e(js) }}, 'message',{{ message|e(js) }});
</script>
{% endif %}

Expand Down

0 comments on commit 6cf5309

Please sign in to comment.