From 731c1a23c29e82f03f81fc9d2bb3bfabc29003d2 Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Thu, 5 Jun 2025 14:33:30 +0700 Subject: [PATCH] [skip ci] update numeric only on verify code --- src/auth/pages/jwt/Login.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/auth/pages/jwt/Login.tsx b/src/auth/pages/jwt/Login.tsx index bdf1055..fec6898 100644 --- a/src/auth/pages/jwt/Login.tsx +++ b/src/auth/pages/jwt/Login.tsx @@ -151,14 +151,18 @@ const Login = () => { { + if (!/[0-9]/.test(e.key)) { + e.preventDefault(); + } + }} /> {formik.touched.token && formik.errors.token && (