set autocomplete=‘one-time-code’ on forms

This allows iOS/iPadOS/macOS to suggest filling codes from sms/the built in totp authenticator (in upcoming versions).

Bug: T289086
Change-Id: I555b05fad4806a37a95afcbc63e143efc424f9d3
This commit is contained in:
MacFan4000 2021-08-21 20:25:48 +00:00
parent 5143076231
commit 249d1f3daf
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ class TOTPDisableForm extends OATHAuthOOUIHTMLForm implements IManageForm {
'required' => true,
'autofocus' => true,
'dir' => 'ltr',
'autocomplete' => false,
'autocomplete' => 'one-time-code',
'spellcheck' => false,
]
];

View file

@ -96,7 +96,7 @@ class TOTPEnableForm extends OATHAuthOOUIHTMLForm implements IManageForm {
'name' => 'token',
'section' => 'step4',
'dir' => 'ltr',
'autocomplete' => false,
'autocomplete' => 'one-time-code',
'spellcheck' => false,
]
];

View file

@ -68,7 +68,7 @@ class HookHandler implements
'dir' => 'ltr',
'autofocus' => true,
'persistent' => false,
'autocomplete' => false,
'autocomplete' => 'one-time-code',
'spellcheck' => false,
];
return true;