mirror of
https://github.com/outline/outline.git
synced 2025-12-21 10:39:41 -06:00
fix: Cannot sign-in to invited account in self-hosted using email. closes #6902
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user