There was an error while loading. Please reload this page.
1 parent 1a46093 commit 86d0b18Copy full SHA for 86d0b18
1 file changed
app/api/user/register/route.ts
@@ -278,6 +278,9 @@ export async function POST(request: Request) {
278
if (portfolio_link && !validateURL(portfolio_link)) {
279
errors.portfolio_link = "Invalid portfolio URL";
280
}
281
+ if (ctf_profile && !validateURL(ctf_profile)) {
282
+ errors.ctf_profile = "Invalid CTF profile URL";
283
+ }
284
285
if (Object.keys(errors).length > 0) {
286
console.error("Registration validation errors:", errors);
0 commit comments