From c5ff0d972bdf5602da5fffb64cf5fe29079c03e6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 15 Nov 2021 16:56:56 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8E=BB=E6=8E=89mfa=20input=20?= =?UTF-8?q?=E7=9A=84required=EF=BC=8C=E4=BB=A5=E4=B8=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/templates/_mfa_login_field.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/templates/_mfa_login_field.html b/apps/templates/_mfa_login_field.html index f4811a11a..52918acfd 100644 --- a/apps/templates/_mfa_login_field.html +++ b/apps/templates/_mfa_login_field.html @@ -75,7 +75,7 @@ } $('.input-style').each(function (i, ele){ - $(ele).attr('name', '').attr('required', false) + $(ele).attr('name', '') }) const currentMFAInputRef = $('#mfa-' + name + ' .input-style') @@ -86,7 +86,7 @@ if (!usernameRef || usernameRef.length === 0) { currentMFAInputRef.focus() } - currentMFAInputRef.attr('name', 'code').attr('required', true) + currentMFAInputRef.attr('name', 'code') } function sendChallengeCode(currentBtn) {