mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
web apps: add autocomplete attribute for usernames and passwords
hinted at by chromium developer console
This commit is contained in:
@ -1676,7 +1676,7 @@ const login = async (reason) => {
|
||||
finally {
|
||||
fieldset.disabled = false;
|
||||
}
|
||||
}, fieldset = dom.fieldset(dom.h1('Admin'), dom.label(style({ display: 'block', marginBottom: '2ex' }), dom.div('Password', style({ marginBottom: '.5ex' })), password = dom.input(attr.type('password'), attr.required(''))), dom.div(style({ textAlign: 'center' }), dom.submitbutton('Login')))))));
|
||||
}, fieldset = dom.fieldset(dom.h1('Admin'), dom.label(style({ display: 'block', marginBottom: '2ex' }), dom.div('Password', style({ marginBottom: '.5ex' })), password = dom.input(attr.type('password'), attr.autocomplete('current-password'), attr.required(''))), dom.div(style({ textAlign: 'center' }), dom.submitbutton('Login')))))));
|
||||
document.body.appendChild(root);
|
||||
password.focus();
|
||||
});
|
||||
|
@ -54,7 +54,7 @@ const login = async (reason: string) => {
|
||||
dom.label(
|
||||
style({display: 'block', marginBottom: '2ex'}),
|
||||
dom.div('Password', style({marginBottom: '.5ex'})),
|
||||
password=dom.input(attr.type('password'), attr.required('')),
|
||||
password=dom.input(attr.type('password'), attr.autocomplete('current-password'), attr.required('')),
|
||||
),
|
||||
dom.div(
|
||||
style({textAlign: 'center'}),
|
||||
|
Reference in New Issue
Block a user