Add signup api notice

pull/11421/merge^2
Sean Brydon 2023-09-18 13:44:43 +01:00
parent bd4ef38371
commit edbad6d89b
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ export default async function handler(req: RequestWithUsernameStatus, res: NextA
ensureReqIsPost(req); ensureReqIsPost(req);
ensureSignupIsEnabled(); ensureSignupIsEnabled();
/** Im not sure its worth merging these two handlers. They are different enough to be separate.
* Calcom handles things like creating a stripe customer - which we dont need to do for self hosted.
* It also handles things like premium username.
* TODO: (SEAN) - Extract a lot of the logic from calcomHandler into a separate file and import it into both handlers.
*/
if (IS_CALCOM) { if (IS_CALCOM) {
return await calcomSignupHandler(req, res); return await calcomSignupHandler(req, res);
} }