From d1ed95d33bbb74e66412bd4a9a207641a66bf520 Mon Sep 17 00:00:00 2001 From: peintnermax Date: Thu, 17 Oct 2024 17:27:21 +0200 Subject: [PATCH] schema --- apps/login/src/lib/zitadel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/login/src/lib/zitadel.ts b/apps/login/src/lib/zitadel.ts index a7bb9e2f7a8..e6ff00f4dc8 100644 --- a/apps/login/src/lib/zitadel.ts +++ b/apps/login/src/lib/zitadel.ts @@ -30,7 +30,7 @@ import { PasswordComplexitySettingsSchema } from "@zitadel/proto/zitadel/setting import type { RedirectURLsJson } from "@zitadel/proto/zitadel/user/v2/idp_pb"; import { NotificationType, - SendPasswordResetLink, + SendPasswordResetLinkSchema, } from "@zitadel/proto/zitadel/user/v2/password_pb"; import { SearchQuery, @@ -496,9 +496,9 @@ export function createUser( * @returns the newly set email */ export async function passwordReset(userId: string, host: string | null) { - let medium: Partial = { + let medium = create(SendPasswordResetLinkSchema, { notificationType: NotificationType.Email, - }; + }); if (host) { medium = {