mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
formatting
This commit is contained in:
@@ -4,7 +4,7 @@ import { getServerSupabase } from "@/lib/supabase/server/getServerSupabase";
|
||||
import { verifyTurnstileToken } from "@/lib/turnstile";
|
||||
import { signupFormSchema } from "@/types/auth";
|
||||
import { shouldShowOnboarding } from "../../helpers";
|
||||
import { isWaitlistError, logWaitlistError } from "./utils";
|
||||
import { isWaitlistError, logWaitlistError } from "../utils";
|
||||
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
|
||||
@@ -28,7 +28,7 @@ export function logWaitlistError(context: string, errorMessage: string): void {
|
||||
// Only log the error code and general message, not the email
|
||||
const sanitizedMessage = errorMessage.replace(
|
||||
/"[^"]+@[^"]+"/g, // Matches email addresses in quotes
|
||||
'"[email]"'
|
||||
'"[email]"',
|
||||
);
|
||||
console.log(`[${context}] Waitlist check failed:`, sanitizedMessage);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,4 @@ export function WaitlistErrorContent({
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user