diff --git a/tfweb/src/routes/auth/mfa/+page.svelte b/tfweb/src/routes/auth/mfa/+page.svelte index 92b1e2a..f300bd3 100644 --- a/tfweb/src/routes/auth/mfa/+page.svelte +++ b/tfweb/src/routes/auth/mfa/+page.svelte @@ -69,6 +69,7 @@ } function validateKeypress(e: KeyboardEvent) { + if (e.charCode === 13) { return; } if (e.charCode < 47 || e.charCode > 57) { e.preventDefault(); } diff --git a/tfweb/src/routes/auth/mfasetup/+page.svelte b/tfweb/src/routes/auth/mfasetup/+page.svelte index 1737cf2..070f83a 100644 --- a/tfweb/src/routes/auth/mfasetup/+page.svelte +++ b/tfweb/src/routes/auth/mfasetup/+page.svelte @@ -67,6 +67,7 @@ }); function validateInput(e: KeyboardEvent) { + if (e.charCode === 13) { return; } if (e.charCode < 47 || e.charCode > 57) { e.preventDefault(); }