Skip to content

Commit

Permalink
fix: prevent other password fields from being auto-filled too
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Nov 14, 2019
1 parent 47dd5ed commit 5832113
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/account/AccountEditor.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class AccountEditor extends Component {
floatingLabelText: this.context.d2.i18n.getTranslation('new_password'),
style: { width: '100%' },
changeEvent: 'onBlur',
autoComplete: 'new-password',
},
validators: [{
validator: isValidPassword,
Expand All @@ -117,6 +118,7 @@ class AccountEditor extends Component {
floatingLabelText: this.context.d2.i18n.getTranslation('repeat_new_password'),
style: { width: '100%' },
changeEvent: 'onBlur',
autoComplete: 'new-password',
},
validators: [{
validator: this.isSamePassword,
Expand Down

0 comments on commit 5832113

Please sign in to comment.