suppress browsers' password autocomplete for document passwords

pull/1/head
ansuz 3 years ago
parent 44f5aee4ac
commit 384d4be864

@ -867,7 +867,8 @@ define([
UI.passwordInput = function (opts, displayEye) {
opts = opts || {};
var attributes = merge({
type: 'password'
type: 'password',
autocomplete: 'new-password', // https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values
}, opts);
var input = h('input.cp-password-input', attributes);

@ -579,7 +579,8 @@ define([
var form = h('div', [
UI.passwordInput({
id: 'cp-settings-change-password-current',
placeholder: Messages.settings_changePasswordCurrent
placeholder: Messages.settings_changePasswordCurrent,
autocomplete: 'current-password',
}, true),
h('br'),
UI.passwordInput({

Loading…
Cancel
Save