Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 61d5e05

Browse files
author
Billy Clark
committed
support for tranlsations coming from custom Auth, e.g., SilAuth.
1 parent cdc78f1 commit 61d5e05

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

themes/material/core/loginuserpass.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<!DOCTYPE html>
22
<?php
33
$siteKey = $this->data['recaptcha.siteKey'] ?? null;
4-
$errorCode = $this->data['errorcode'] ?? null;
54
$username = $this->data['username'] ?? null;
5+
6+
$errorCode = $this->data['errorcode'] ?? null;
7+
$errorMessageKey = $this->data['errorparams'][1] ?? '{material:login:error_wronguserpass}';
8+
$errorMessageTokens = $this->data['errorparams'][2] ?? [];
69
?>
710
<html>
811
<head>
@@ -77,7 +80,7 @@ function onRecaptchaLoad() {
7780
<i class="material-icons">error</i>
7881

7982
<span class="mdl-typography--caption margin">
80-
<?= $this->t('{material:login:error_wronguserpass}') ?>
83+
<?= $this->t($errorMessageKey, $errorMessageTokens) ?>
8184
</span>
8285
</p>
8386
<?php

0 commit comments

Comments
 (0)