allow the user's password manager to automatically enter the password/username/new-password

This commit is contained in:
Emmanuel Counasse 2020-07-11 23:01:54 +02:00 committed by ljf (zamentur)
parent 514c416c68
commit 1dae6e8a1e
2 changed files with 5 additions and 5 deletions

View file

@ -2,11 +2,11 @@
<form class="login-form" name="input" action="" method="post">
<div class="form-group">
<label class="icon icon-user" for="user"><span class="element-invisible">{{t_username}}</span></label>
<input id="user" type="text" name="user" placeholder="{{t_username}}" class="form-text" autofocus required>
<input id="user" type="text" name="user" placeholder="{{t_username}}" class="form-text" autocomplete="username" autofocus required>
</div>
<div class="form-group">
<label class="icon icon-lock" for="password"><span class="element-invisible">{{t_password}}</span></label>
<input id="password" type="password" name="password" placeholder="{{t_password}}" class="form-text" required>
<input id="password" type="password" name="password" placeholder="{{t_password}}" class="form-text" autocomplete="current-password" required>
</div>
<input type="submit" value="{{t_login}}" class="btn classic-btn large-btn">
</form>

View file

@ -20,14 +20,14 @@
<div class="form-section">
<div class="form-group">
<label for="currentpassword">{{t_current_password}}</label>
<input type="password" class="form-text" id="currentpassword" name="currentpassword" placeholder="•••••" required>
<input type="password" class="form-text" id="currentpassword" name="currentpassword" placeholder="•••••" autocomplete="current-password" required>
</div>
</div>
<div class="form-section">
<div class="form-group">
<label for="newpassword">{{t_new_password}}</label>
<input type="password" class="form-text" id="newpassword" name="newpassword" placeholder="•••••" required>
<input type="password" class="form-text" id="confirm" name="confirm" placeholder="{{t_confirm}}" required>
<input type="password" class="form-text" id="newpassword" name="newpassword" placeholder="•••••" autocomplete="new-password" required>
<input type="password" class="form-text" id="confirm" name="confirm" placeholder="{{t_confirm}}" autocomplete="new-password" required>
</div>
<div class="btn-group">
<a role="button" href="portal.html" class="btn large-btn btn-default">{{t_cancel}}</a>