diff --git a/src/pages/signup/[id].tsx b/src/pages/signup/[id].tsx index 3bba852..052cd0c 100644 --- a/src/pages/signup/[id].tsx +++ b/src/pages/signup/[id].tsx @@ -47,16 +47,23 @@ const SignUpPage: NextPage = ({ initialForm }) => { } const onSubmit = async ({ formData }: ISubmitEvent) => { + + //for bot detection + if (honeypot !== "") { console.log("bot cought in honeypot cought lacking"); toast.success("Sign-up submitted successfully 😎"); return; } + const trackedForm = { + ...formData, + _source: "from the webs submit" + }; const payload: Signup = { submit_id: SUBMIT_ID, // This is for preventing duplicate requests; NOT RELATED TO THE SIGNUP ID IN DATABASE signupForm_id: signupForm.id, - answer: formData, + answer: trackedForm, }; try {