fix: Cannot sign-in to invited account in self-hosted using email. closes #6902

This commit is contained in:
Tom Moor
2024-05-16 19:01:41 -04:00
parent c8d62c04cf
commit 64169ec414
2 changed files with 1 additions and 10 deletions

View File

@@ -3,7 +3,6 @@ import env from "@server/env";
import {
DomainNotAllowedError,
InvalidAuthenticationError,
MaximumTeamsError,
TeamPendingDeletionError,
} from "@server/errors";
import { traceFunction } from "@server/logging/tracing";
@@ -107,7 +106,7 @@ async function teamProvisioner({
}
if (team) {
throw MaximumTeamsError();
throw InvalidAuthenticationError();
}
}

View File

@@ -141,14 +141,6 @@ export function OAuthStateMismatchError(
});
}
export function MaximumTeamsError(
message = "The maximum number of workspaces has been reached"
) {
return httpErrors(400, message, {
id: "maximum_reached",
});
}
export function TeamPendingDeletionError(
message = "The workspace is pending deletion"
) {