refactor: update comments for clarity in signup route

This commit is contained in:
Nawaz Dhandala
2026-03-25 19:50:51 +00:00
parent 7f30600c71
commit 19b5bc8348

View File

@@ -124,8 +124,10 @@ router.post(
): Promise<void> => {
try {
if (await DatabaseConfig.shouldDisableSignup()) {
// Check if this user has been invited to a project.
// If so, allow them to sign up even if signup is disabled.
/*
* Check if this user has been invited to a project.
* If so, allow them to sign up even if signup is disabled.
*/
const data: JSONObject = req.body["data"] as JSONObject;
const emailForInviteCheck: string | undefined = data?.["email"] as
| string