Archived
1
0

Don't write bad password back out to input

Closes #1379.
This commit is contained in:
Asher
2020-02-28 10:49:35 -06:00
parent 963ebaca5b
commit 0f87798ed6
2 changed files with 5 additions and 13 deletions

View File

@ -33,12 +33,9 @@
<input class="user" type="text" autocomplete="username" />
<input id="base" type="hidden" name="base" value="/" />
<div class="field">
<!-- The onfocus code places the cursor at the end of the value. -->
<input
required
autofocus
value="{{VALUE}}"
onfocus="const value=this.value;this.value='';this.value=value;"
class="password"
type="password"
placeholder="PASSWORD"