require invite token to register except for initial registration

This commit is contained in:
Alex Holliday committed 2024-09-25 15:12:07 +08:00
1 parent 4e8675df45
commit 5dbd8378e2
6 files changed
+42 -3

No files matched your search

+1
View File
@@ -77,6 +77,7 @@ const credentials = joi.object({
}),
role: joi.array(),
teamId: joi.string().allow("").optional(),
inviteToken: joi.string().allow(""),
});
const monitorValidation = joi.object({