diff --git a/ui/app/components/auth/fields.hbs b/ui/app/components/auth/fields.hbs index f4afd32827..8fca875531 100644 --- a/ui/app/components/auth/fields.hbs +++ b/ui/app/components/auth/fields.hbs @@ -6,7 +6,8 @@ {{#each @loginFields as |field|}} {{#let field.name field.label field.helperText as |name label helperText|}} { // token or password should render as "password" types, otherwise render text inputs setInputType = (field: string) => (['token', 'password'].includes(field) ? 'password' : 'text'); - - setAutocomplete = (fieldName: string) => { - switch (fieldName) { - case 'password': - return 'current-password'; - case 'token': - return 'off'; - default: - return fieldName; - } - }; } diff --git a/ui/tests/integration/components/auth/fields-test.js b/ui/tests/integration/components/auth/fields-test.js index e1860d43fa..1c6818c6d7 100644 --- a/ui/tests/integration/components/auth/fields-test.js +++ b/ui/tests/integration/components/auth/fields-test.js @@ -72,10 +72,10 @@ module('Integration | Component | auth | fields', function (hooks) { test('it renders expected autocomplete values', async function (assert) { await this.renderComponent(); const expectedValues = { - username: 'username', - role: 'role', + username: 'off', + role: 'off', token: 'off', - password: 'current-password', + password: 'off', }; for (const field of this.loginFields) {