mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-28 02:00:06 +00:00
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:
parent
5143076231
commit
249d1f3daf
|
@ -27,7 +27,7 @@ class TOTPDisableForm extends OATHAuthOOUIHTMLForm implements IManageForm {
|
|||
'required' => true,
|
||||
'autofocus' => true,
|
||||
'dir' => 'ltr',
|
||||
'autocomplete' => false,
|
||||
'autocomplete' => 'one-time-code',
|
||||
'spellcheck' => false,
|
||||
]
|
||||
];
|
||||
|
|
|
@ -96,7 +96,7 @@ class TOTPEnableForm extends OATHAuthOOUIHTMLForm implements IManageForm {
|
|||
'name' => 'token',
|
||||
'section' => 'step4',
|
||||
'dir' => 'ltr',
|
||||
'autocomplete' => false,
|
||||
'autocomplete' => 'one-time-code',
|
||||
'spellcheck' => false,
|
||||
]
|
||||
];
|
||||
|
|
|
@ -68,7 +68,7 @@ class HookHandler implements
|
|||
'dir' => 'ltr',
|
||||
'autofocus' => true,
|
||||
'persistent' => false,
|
||||
'autocomplete' => false,
|
||||
'autocomplete' => 'one-time-code',
|
||||
'spellcheck' => false,
|
||||
];
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue