mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-22 13:57:51 +00:00
cleanup skipsend
This commit is contained in:
@@ -20,15 +20,8 @@ export default async function Page(props: { searchParams: Promise<any> }) {
|
||||
const t = await getTranslations({ locale, namespace: "verify" });
|
||||
const tError = await getTranslations({ locale, namespace: "error" });
|
||||
|
||||
const {
|
||||
userId,
|
||||
loginName,
|
||||
code,
|
||||
organization,
|
||||
authRequestId,
|
||||
invite,
|
||||
skipsend,
|
||||
} = searchParams;
|
||||
const { userId, loginName, code, organization, authRequestId, invite } =
|
||||
searchParams;
|
||||
|
||||
const branding = await getBrandingSettings(organization);
|
||||
|
||||
@@ -37,7 +30,7 @@ export default async function Page(props: { searchParams: Promise<any> }) {
|
||||
let human: HumanUser | undefined;
|
||||
let id: string | undefined;
|
||||
|
||||
const doSend = !skipsend && invite !== "true";
|
||||
const doSend = invite !== "true";
|
||||
|
||||
if ("loginName" in searchParams) {
|
||||
sessionFactors = await loadMostRecentSession({
|
||||
|
@@ -92,7 +92,6 @@ export async function registerUser(command: RegisterUserCommand) {
|
||||
humanUser,
|
||||
session.factors.user.organizationId,
|
||||
command.authRequestId,
|
||||
//true, // skip send as a mail was send during registration
|
||||
);
|
||||
|
||||
if (emailVerificationCheck?.redirect) {
|
||||
|
@@ -62,7 +62,6 @@ export function checkEmailVerification(
|
||||
humanUser?: HumanUser,
|
||||
organization?: string,
|
||||
authRequestId?: string,
|
||||
skipSend?: boolean,
|
||||
) {
|
||||
if (
|
||||
!humanUser?.email?.isVerified &&
|
||||
@@ -83,10 +82,6 @@ export function checkEmailVerification(
|
||||
);
|
||||
}
|
||||
|
||||
if (skipSend) {
|
||||
params.append("skipsend", "true");
|
||||
}
|
||||
|
||||
return { redirect: `/verify?` + params };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user