feat: Enforce single team when self-hosted (#1954)
* fix: Enforce single team when self hosting * test: positive case * refactor * fix: Visible error message on login screen for max teams scenario * Update Notices.js * lint
This commit is contained in:
@@ -69,6 +69,12 @@ export function OAuthStateMismatchError(
|
||||
return httpErrors(400, message, { id: "state_mismatch" });
|
||||
}
|
||||
|
||||
export function MaximumTeamsError(
|
||||
message: string = "The maximum number of teams has been reached"
|
||||
) {
|
||||
return httpErrors(400, message, { id: "maximum_teams" });
|
||||
}
|
||||
|
||||
export function EmailAuthenticationRequiredError(
|
||||
message: string = "User must authenticate with email",
|
||||
redirectUrl: string = env.URL
|
||||
|
||||
Reference in New Issue
Block a user