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) }}