diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Let password managers fill the login form
Diffstat (limited to '')
-rw-r--r--custom/extensions/auth-file.lua8
-rw-r--r--custom/extensions/auth-inline.lua8
2 files changed, 8 insertions, 8 deletions
diff --git a/custom/extensions/auth-file.lua b/custom/extensions/auth-file.lua
index 8c731a3..74a04b6 100644
--- a/custom/extensions/auth-file.lua
+++ b/custom/extensions/auth-file.lua
@@ -514,11 +514,11 @@ function body()
html("'>")
html("<input type='hidden' name='redirect' value='")
html_attr(secure_value("redirect", target, 0))
- html("' />")
+ html("'>")
html("<table>")
- html("<tr><td><label for='username'>Username:</label></td><td><input id='username' name='username' autofocus /></td></tr>")
- html("<tr><td><label for='password'>Password:</label></td><td><input id='password' name='password' type='password' /></td></tr>")
- html("<tr><td colspan='2'><input value='Login' type='submit' /></td></tr>")
+ html("<tr><td><label for='username'>Username:</label></td><td><input id='username' name='username' autocomplete='username' autofocus></td></tr>")
+ html("<tr><td><label for='password'>Password:</label></td><td><input id='password' name='password' type='password' autocomplete='current-password'></td></tr>")
+ html("<tr><td colspan='2'><input value='Login' type='submit'></td></tr>")
html("</table></form>")
return 0
diff --git a/custom/extensions/auth-inline.lua b/custom/extensions/auth-inline.lua
index 500d705..aa4b9f1 100644
--- a/custom/extensions/auth-inline.lua
+++ b/custom/extensions/auth-inline.lua
@@ -476,11 +476,11 @@ function body()
html("'>")
html("<input type='hidden' name='redirect' value='")
html_attr(secure_value("redirect", target, 0))
- html("' />")
+ html("'>")
html("<table>")
- html("<tr><td><label for='username'>Username:</label></td><td><input id='username' name='username' autofocus /></td></tr>")
- html("<tr><td><label for='password'>Password:</label></td><td><input id='password' name='password' type='password' /></td></tr>")
- html("<tr><td colspan='2'><input value='Login' type='submit' /></td></tr>")
+ html("<tr><td><label for='username'>Username:</label></td><td><input id='username' name='username' autocomplete='username' autofocus></td></tr>")
+ html("<tr><td><label for='password'>Password:</label></td><td><input id='password' name='password' type='password' autocomplete='current-password'></td></tr>")
+ html("<tr><td colspan='2'><input value='Login' type='submit'></td></tr>")
html("</table></form>")
return 0