fix: Fix 2FA form validation

This commit is contained in:
Xyphyn committed 2023-07-26 10:43:40 -07:00
1 parent 4c2350280f
commit 91134d05e4
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@
maxlength={6}
class="w-20"
on:input={(e) => {
if (!Number(e.detail.data)) {
if (!Number.isInteger(Number(e.detail.data))) {
e.preventDefault()
data.totp = data.totp.replace(e.detail.data, '')
}