Skip to content

Commit

Permalink
Add password minlength
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Nov 23, 2024
1 parent b7fcc80 commit f77b120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
6 changes: 1 addition & 5 deletions pages/tools/mx-lookup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const MaxLookup: FunctionComponent = function () {
const [domain, setDomain] = useState<string>('');
const [loading, setLoading] = useState<boolean>(false);
const [data, setData] = useState<dnsRecord[]>(null);
const genericRequestBuilder = async (type: string, index: number) => {
await new Promise((resolve) => setTimeout(resolve, 500 * index));

return;
};

const fetchData = async () => {
setLoading(true);
Expand All @@ -29,6 +24,7 @@ const MaxLookup: FunctionComponent = function () {
}
)
).json();
console.log(data);
const allRecords = [];
if (data.Status === 0 && data.Answer) {
allRecords.push(
Expand Down

0 comments on commit f77b120

Please sign in to comment.