prevent form autofill on the team invite modal
This commit is contained in:
parent
89d9f22e0e
commit
78a1c6bdbd
@ -1639,6 +1639,11 @@ define([
|
|||||||
h('p', Messages.team_inviteLinkTitle ),
|
h('p', Messages.team_inviteLinkTitle ),
|
||||||
linkError = h('div.alert.alert-danger.cp-teams-invite-alert', {style : 'display: none;'}),
|
linkError = h('div.alert.alert-danger.cp-teams-invite-alert', {style : 'display: none;'}),
|
||||||
linkForm = h('div.cp-teams-invite-form', [
|
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', {
|
linkName = h('input', {
|
||||||
placeholder: Messages.team_inviteLinkTempName
|
placeholder: Messages.team_inviteLinkTempName
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user