This repository was archived by the owner on Jun 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 3434 "es" : " Iniciar sesión" ,
3535 "fr" : " Connexion" ,
3636 "ko" : " 로그인"
37+ },
38+ "forgot" : {
39+ "en" : " Forgot your password? Reset it now" ,
40+ "es" : " ¿Olvidaste tu contraseña? Restablecer ahora" ,
41+ "fr" : " Mot de passe oublié? Réinitialisez-le maintenant" ,
42+ "ko" : " 비밀번호를 잊어 버렸습니까? 지금 다시 설정하십시오"
3743 }
3844}
Original file line number Diff line number Diff line change 33 $ siteKey = $ this ->data ['recaptcha.siteKey ' ] ?? null ;
44 $ username = $ this ->data ['username ' ] ?? null ;
55 $ forgotPasswordUrl = $ this ->data ['forgotPasswordUrl ' ] ?? null ;
6-
6+
77 $ errorCode = $ this ->data ['errorcode ' ] ?? null ;
88 $ errorMessageKey = $ this ->data ['errorparams ' ][1 ] ?? '{material:login:error_wronguserpass} ' ;
99 $ errorMessageTokens = $ this ->data ['errorparams ' ][2 ] ?? [];
@@ -72,7 +72,7 @@ function onRecaptchaLoad() {
7272 <input type="password" name="password" class="mdl-textfield__input"
7373 <?= ! empty ($ username ) ? 'autofocus ' : '' ?> />
7474 </div>
75-
75+
7676 <?php
7777 if ($ errorCode == 'WRONGUSERPASS ' ) {
7878 ?>
@@ -91,9 +91,19 @@ function onRecaptchaLoad() {
9191 <button class="mdl-button mdl-button--colored mdl-button--raised">
9292 <?= $ this ->t ('{material:login:button_login} ' ) ?>
9393 </button>
94- <?php if ( ! empty ($ forgotPasswordUrl )): ?>
95- <a href="<?= htmlentities ($ forgotPasswordUrl ); ?> " target="_blank">Forgot password?</a>
96- <?php endif ; ?>
94+
95+ <?php
96+ if (! empty ($ forgotPasswordUrl )) {
97+ ?>
98+ <p class="mdl-typography--caption margin">
99+ <a href="<?= htmlentities ($ forgotPasswordUrl ) ?> "
100+ target="_blank">
101+ <?= $ this ->t ('{material:login:forgot} ' ) ?>
102+ </a>
103+ <p>
104+ <?php
105+ }
106+ ?>
97107 </form>
98108 </main>
99109
You can’t perform that action at this time.
0 commit comments