suppress browsers' password autocomplete for document passwords

This commit is contained in:
ansuz 2021-08-11 19:21:19 +05:30
parent 44f5aee4ac
commit 384d4be864
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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({