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

Commit b43953e

Browse files
author
Steve Bagwell
committed
Have the browser require the username and password on login page
1 parent 09d64c2 commit b43953e

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)