From f77b120d7631f7d07c17709cbfb849cbfd24db41 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Sat, 23 Nov 2024 11:11:18 +0100 Subject: [PATCH] Add password minlength --- pages/signup.tsx | 1 + pages/tools/mx-lookup.tsx | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pages/signup.tsx b/pages/signup.tsx index 54f652ae..5125a814 100644 --- a/pages/signup.tsx +++ b/pages/signup.tsx @@ -157,6 +157,7 @@ const Signup: FunctionComponent = function () { id='new-password' autoComplete='new-password' placeholder='Enter your password' + minLength={10} required {...registerFormField('password')} onChange={(e) => { diff --git a/pages/tools/mx-lookup.tsx b/pages/tools/mx-lookup.tsx index 9c3178fe..247f96ad 100644 --- a/pages/tools/mx-lookup.tsx +++ b/pages/tools/mx-lookup.tsx @@ -11,11 +11,6 @@ const MaxLookup: FunctionComponent = function () { const [domain, setDomain] = useState(''); const [loading, setLoading] = useState(false); const [data, setData] = useState(null); - const genericRequestBuilder = async (type: string, index: number) => { - await new Promise((resolve) => setTimeout(resolve, 500 * index)); - - return; - }; const fetchData = async () => { setLoading(true); @@ -29,6 +24,7 @@ const MaxLookup: FunctionComponent = function () { } ) ).json(); + console.log(data); const allRecords = []; if (data.Status === 0 && data.Answer) { allRecords.push(