From 4c69a4620d3d90c366c1acd8150e3801ac180a61 Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 11 Mar 2026 11:44:37 +0200 Subject: [PATCH] to detect source --- src/pages/signup/[id].tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {