pull/11421/merge^2
Sean Brydon 2023-09-21 11:04:19 +01:00
parent eb9614ee97
commit 7e1b8b4b00
1 changed files with 0 additions and 10 deletions

View File

@ -127,16 +127,6 @@ function UsernameField({
const checkValidEmail = (email: string) => z.string().email().safeParse(email).success;
const getOrgUsernameFromEmail = (email: string, autoAcceptEmailDomain: string) => {
const [emailUser, emailDomain] = email.split("@");
const username =
emailDomain === autoAcceptEmailDomain
? slugify(emailUser)
: slugify(`${emailUser}-${emailDomain.split(".")[0]}`);
return username;
};
function addOrUpdateQueryParam(url: string, key: string, value: string) {
const separator = url.includes("?") ? "&" : "?";
const param = `${key}=${encodeURIComponent(value)}`;