diff --git a/app/app/login/page.tsx b/app/app/login/page.tsx index 2544e1e..9afdaae 100644 --- a/app/app/login/page.tsx +++ b/app/app/login/page.tsx @@ -27,6 +27,7 @@ const LoginPage = () => { const router = useRouter(); const [loading, setLoading] = useState(true); const [token,setToken] = useState("") + const site_id = process.env.NEXT_PUBLIC_CAPTCHA_SITE_KEY || "" const { data } = useSession(); useEffect(() => { @@ -76,7 +77,7 @@ const LoginPage = () => { { setToken(token) - }} siteKey='0x4AAAAAAAbu8T-y1tAsroOZ' /> + }} siteKey={site_id} /> diff --git a/lib/actions/captchaVerify.ts b/lib/actions/captchaVerify.ts index 7bc5f21..e7aaf07 100644 --- a/lib/actions/captchaVerify.ts +++ b/lib/actions/captchaVerify.ts @@ -2,7 +2,7 @@ import { HTTP_STATUS } from "../constants"; export async function captchaVerify (token:string) { - const SECRET_KEY = "0x4AAAAAAAbu8XnHHmSbg9kLI3T3HziPSuI" + const SECRET_KEY = process.env.CAPTCHA_SECRET_KEY || ""; let formData = new FormData(); formData.append('secret', SECRET_KEY);