From e8d82f48bca79bcb531d769cda4ed6a24e321bbe Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Thu, 26 Jul 2018 10:31:20 +0200 Subject: [PATCH] add maxlength attribute for 2FA input fields --- .../discourse/templates/preferences-second-factor.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs b/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs index c425d6bf7f7..dcd1368fdd6 100644 --- a/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs +++ b/app/assets/javascripts/discourse/templates/preferences-second-factor.hbs @@ -20,7 +20,7 @@
- {{second-factor-input value=secondFactorToken inputId='second-factor-token'}} + {{second-factor-input maxlength=6 value=secondFactorToken inputId='second-factor-token'}}
@@ -72,7 +72,7 @@
- {{second-factor-input value=secondFactorToken inputId='second-factor-token'}} + {{second-factor-input maxlength=6 value=secondFactorToken inputId='second-factor-token'}}