We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00c054 commit b655c2cCopy full SHA for b655c2c
utils/recaptcha.js
@@ -1,14 +1,23 @@
1
function check_recaptcha_params(name, email, launch) {
2
if (name !== "") {
3
- return { status: 500 }
+ return {
4
+ statusCode: 500,
5
+ body: JSON.stringify({ message: "INTERNAL_ERROR" }),
6
+ }
7
}
8
if (email !== "") {
9
10
11
12
13
14
if (launch !== false) {
15
16
17
18
19
- return { status: 200 }
20
+ return { statusCode: 200, body: JSON.stringify({ message: "OK" }) }
21
22
23
export { check_recaptcha_params }
0 commit comments