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 = {