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

Commit af47def

Browse files
author
Baggerone
authored
Merge pull request #126 from silinternational/develop
Release 8.0.2 Make credential fields required
2 parents d6a4d27 + 1a83662 commit af47def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/material/core/loginuserpass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function onRecaptchaLoad() {
8282
<?php
8383
$username = htmlentities($this->data['username'] ?? null);
8484
?>
85-
<input type="text" name="username" class="mdl-textfield__input" value="<?= $username ?>"
85+
<input type="text" required name="username" class="mdl-textfield__input" value="<?= $username ?>"
8686
<?= empty($username) ? 'autofocus' : '' ?> id="username"/>
8787
</div>
8888

@@ -91,7 +91,7 @@ function onRecaptchaLoad() {
9191
<?= $this->t('{material:login:label_password}') ?>
9292
</label>
9393

94-
<input type="password" name="password" class="mdl-textfield__input" <?= ! empty($username) ? 'autofocus' : '' ?>
94+
<input type="password" required name="password" class="mdl-textfield__input" <?= ! empty($username) ? 'autofocus' : '' ?>
9595
id="password"/>
9696
</div>
9797
</div>

0 commit comments

Comments
 (0)