From e8d07f747d53a67051ae373946dbe59cbb92c1a4 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 12 Dec 2022 15:49:23 +0000 Subject: [PATCH] Make two factor code input field trigger a numeric keyboard on phones. --- templates/auth/twofactor.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/auth/twofactor.twig b/templates/auth/twofactor.twig index 48c413fa..83a8525b 100644 --- a/templates/auth/twofactor.twig +++ b/templates/auth/twofactor.twig @@ -27,7 +27,7 @@ Code
- {{ input_text('twofactor[code]', 'input__text--monospace input__text--centre auth__label__input', '', 'text', '', true, {'maxlength':6}, 1) }} + {{ input_text('twofactor[code]', 'input__text--monospace input__text--centre auth__label__input', '', 'text', '', true, {'maxlength': 6, 'inputmode': 'numeric'}, 1) }}