From 8099c0ac7da5215fa6d7b95f3c78f41902efadf0 Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 18 Jun 2019 23:36:20 +0100 Subject: [PATCH] Make token fields always ltr Bug: T153556 Change-Id: Iff116722e60dee3e370905c9d7d0b2269e1c4c87 --- src/Hook/AuthChangeFormFields/TOTPExtendTokenField.php | 1 + src/Special/TOTPDisable.php | 1 + src/Special/TOTPEnable.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Hook/AuthChangeFormFields/TOTPExtendTokenField.php b/src/Hook/AuthChangeFormFields/TOTPExtendTokenField.php index 3d0607b5..59927f1b 100644 --- a/src/Hook/AuthChangeFormFields/TOTPExtendTokenField.php +++ b/src/Hook/AuthChangeFormFields/TOTPExtendTokenField.php @@ -65,6 +65,7 @@ class TOTPExtendTokenField { 'cssClass' => 'loginText', 'id' => 'wpOATHToken', 'size' => 20, + 'dir' => 'ltr', 'autofocus' => true, 'persistent' => false, 'autocomplete' => false, diff --git a/src/Special/TOTPDisable.php b/src/Special/TOTPDisable.php index 1f290a84..9e9a1960 100644 --- a/src/Special/TOTPDisable.php +++ b/src/Special/TOTPDisable.php @@ -103,6 +103,7 @@ class TOTPDisable extends FormSpecialPage { 'name' => 'token', 'required' => true, 'autofocus' => true, + 'dir' => 'ltr', ], 'returnto' => [ 'type' => 'hidden', diff --git a/src/Special/TOTPEnable.php b/src/Special/TOTPEnable.php index a1f0c098..e2037f73 100644 --- a/src/Special/TOTPEnable.php +++ b/src/Special/TOTPEnable.php @@ -167,6 +167,7 @@ class TOTPEnable extends FormSpecialPage { 'label-message' => 'oathauth-entertoken', 'name' => 'token', 'section' => 'step4', + 'dir' => 'ltr', ], 'returnto' => [ 'type' => 'hidden',