From 78b54fad536c517648e6d095d75407bf13059579 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 30 Dec 2019 12:58:26 -0500 Subject: [PATCH] prevent form autofill on the team invite modal --- www/common/common-ui-elements.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 331c15fd9..6323be780 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1639,6 +1639,11 @@ define([ h('p', Messages.team_inviteLinkTitle ), linkError = h('div.alert.alert-danger.cp-teams-invite-alert', {style : 'display: none;'}), linkForm = h('div.cp-teams-invite-form', [ + // autofill: 'off' was insufficient + // adding these two fake inputs confuses firefox and prevents unwanted form autofill + h('input', { type: 'text', style: 'display: none'}), + h('input', { type: 'password', style: 'display: none'}), + linkName = h('input', { placeholder: Messages.team_inviteLinkTempName }),