Skip to content

Commit a2d75df

Browse files
committed
improve Turnstile captcha error messages (#6315)
1 parent 5d345e7 commit a2d75df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dashboard/src/app/login/auth-actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function doLogin(
5050
if (isVercel()) {
5151
if (!turnstileToken) {
5252
return {
53-
error: "Missing Turnstile token.",
53+
error: "Please complete the captcha.",
5454
};
5555
}
5656

@@ -120,7 +120,7 @@ export async function doLogin(
120120
const outcome = await result.json();
121121
if (!outcome.success) {
122122
return {
123-
error: "Could not validate captcha.",
123+
error: "Invalid captcha. Please try again.",
124124
};
125125
}
126126
}

0 commit comments

Comments
 (0)