diff --git a/apps/login/app/(login)/password/change/page.tsx b/apps/login/app/(login)/password/change/page.tsx
deleted file mode 100644
index c0ce2fa4d8d..00000000000
--- a/apps/login/app/(login)/password/change/page.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-"use client";
-import { Button, ButtonVariants } from "#/ui/Button";
-import { TextInput } from "#/ui/Input";
-import UserAvatar from "#/ui/UserAvatar";
-import { useRouter } from "next/navigation";
-
-export default function Page() {
- const router = useRouter();
-
- return (
-
-
Password
-
Enter your password.
-
-
-
-
-
-
-
-
-
-
-
- );
-}
diff --git a/apps/login/app/(login)/password/set/page.tsx b/apps/login/app/(login)/password/set/page.tsx
deleted file mode 100644
index 35714ec8bf5..00000000000
--- a/apps/login/app/(login)/password/set/page.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-"use client";
-
-import { TextInput } from "#/ui/Input";
-import { useState } from "react";
-import { useForm } from "react-hook-form";
-import { ClientError } from "nice-grpc";
-
-type Props = {
- userId?: string;
- isMe?: boolean;
- userState?: any; // UserState;
-};
-
-export default function Page() {
- const [passwordLoading, setPasswordLoading] = useState(false);
- const [policyValid, setPolicyValid] = useState(false);
-
- type Inputs = {
- password?: string;
- newPassword: string;
- confirmPassword: string;
- };
-
- const { register, handleSubmit, watch, reset, formState } = useForm({
- mode: "onChange",
- reValidateMode: "onChange",
- shouldUseNativeValidation: true,
- });
-
- const { errors, isValid } = formState;
-
- const watchNewPassword = watch("newPassword", "");
- const watchConfirmPassword = watch("confirmPassword", "");
-
- async function updatePassword(value: Inputs) {
- setPasswordLoading(true);
-
- // const authData: UpdateMyPasswordRequest = {
- // oldPassword: value.password ?? '',
- // newPassword: value.newPassword,
- // };
-
- const response = await fetch(
- `/api/user/password/me` +
- `?${new URLSearchParams({
- resend: `false`,
- })}`,
- {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify({}),
- }
- );
-
- if (response.ok) {
- setPasswordLoading(false);
- // toast('password.set');
- // TODO: success info
- reset();
- } else {
- const error = (await response.json()) as ClientError;
- // toast.error(error.details);
- // TODO: show error
- }
- setPasswordLoading(false);
- }
-
- async function sendHumanResetPasswordNotification(userId: string) {
- // const mgmtData: SendHumanResetPasswordNotificationRequest = {
- // type: SendHumanResetPasswordNotificationRequest_Type.TYPE_EMAIL,
- // userId: userId,
- // };
-
- const response = await fetch(`/api/user/password/resetlink/${userId}`, {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify({}),
- });
-
- if (response.ok) {
- // TODO: success info
- // toast(t('sendPasswordResetLinkSent'));
- } else {
- const error = await response.json();
- // TODO: show error
- // toast.error((error as ClientError).details);
- }
- }
-
- return (
- <>
- Set Password
-
- Enter your new Password according to the requirements listed.
-
-
- >
- );
-}
diff --git a/apps/login/lib/demos.ts b/apps/login/lib/demos.ts
index a1b7e288285..7d8e5f2c937 100644
--- a/apps/login/lib/demos.ts
+++ b/apps/login/lib/demos.ts
@@ -23,31 +23,6 @@ export const demos: { name: string; items: Item[] }[] = [
slug: "accounts",
description: "List active and inactive sessions",
},
- // {
- // name: "Set Password",
- // slug: "password/set",
- // description: "The page to set a users password",
- // },
- // {
- // name: "MFA",
- // slug: "mfa",
- // description: "The page to request a users mfa method",
- // },
- // {
- // name: "MFA Set",
- // slug: "mfa/set",
- // description: "The page to set a users mfa method",
- // },
- // {
- // name: "MFA Create",
- // slug: "mfa/create",
- // description: "The page to create a users mfa method",
- // },
- // {
- // name: "Passwordless",
- // slug: "passwordless",
- // description: "The page to login a user with his passwordless device",
- // },
{
name: "Passkey Registration",
slug: "passkey/add",
diff --git a/apps/login/lib/zitadel.ts b/apps/login/lib/zitadel.ts
index a86833dce5d..afe72254659 100644
--- a/apps/login/lib/zitadel.ts
+++ b/apps/login/lib/zitadel.ts
@@ -2,7 +2,6 @@ import {
ZitadelServer,
ZitadelServerOptions,
user,
- management,
settings,
getServers,
initializeServer,
@@ -199,7 +198,6 @@ export async function setEmail(
);
}
-
/**
*
* @param server
diff --git a/apps/login/ui/Info.tsx b/apps/login/ui/Info.tsx
deleted file mode 100644
index 59392e8c7c5..00000000000
--- a/apps/login/ui/Info.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
-
-type Props = {
- children: React.ReactNode;
-};
-
-export default function Alert({ children }: Props) {
- return (
-
-
- {children}
-
- );
-}