fix: Fix 2FA form validation
This commit is contained in:
1 parent
4c2350280f
commit
91134d05e4
1 file changed
+1
-1
@@ -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, '')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user