diff --git a/src/core/server/services/users/helpers.ts b/src/core/server/services/users/helpers.ts index 1dd793d38..c65d07a2d 100644 --- a/src/core/server/services/users/helpers.ts +++ b/src/core/server/services/users/helpers.ts @@ -5,7 +5,6 @@ import { USERNAME_MIN_LENGTH, USERNAME_REGEX, } from "coral-common/helpers/validate"; - import { EmailExceedsMaxLengthError, EmailInvalidFormatError, diff --git a/src/core/server/services/users/users.ts b/src/core/server/services/users/users.ts index d836ec0df..85e095459 100644 --- a/src/core/server/services/users/users.ts +++ b/src/core/server/services/users/users.ts @@ -630,9 +630,6 @@ export async function updateUsernameByID( username: string, createdBy: User ) { - // Validate the username. - validateUsername(username); - return updateUserUsername(mongo, tenant.id, userID, username, createdBy.id); }