Disable autocomplete on 2FA verification fields

For both enabling and disabling 2FA TOTP

Bug: T226049
Change-Id: Ib0f4c8d1d19fe6cdc403ba306ec44dadbe6320c9
This commit is contained in:
Reedy 2019-06-18 21:14:48 +01:00
parent ec781fa22e
commit 707f33398f
2 changed files with 4 additions and 0 deletions

View file

@ -104,6 +104,8 @@ class TOTPDisable extends FormSpecialPage {
'required' => true,
'autofocus' => true,
'dir' => 'ltr',
'autocomplete' => false,
'spellcheck' => false,
],
'returnto' => [
'type' => 'hidden',

View file

@ -168,6 +168,8 @@ class TOTPEnable extends FormSpecialPage {
'name' => 'token',
'section' => 'step4',
'dir' => 'ltr',
'autocomplete' => false,
'spellcheck' => false,
],
'returnto' => [
'type' => 'hidden',