Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: completed ui for account recovery setup
=665cd50adc66
diff --git a/frontend/src/const/routes.ts b/frontend/src/const/routes.tsindex d10913c84f..1bebaab833 100644--- a/frontend/src/const/routes.ts+++ b/frontend/src/const/routes.ts@@ -13,7 +13,10 @@ export const ROUTE_PATHS = Object.freeze({"/_restrict-login-signup/login/provider/success"),SignUpSsoPage: setRoute("/signup/sso", "/_restrict-login-signup/signup/sso"),- PasswordResetPage: setRoute("/password-reset", "/_restrict-login-signup/password-reset"),+ AccountRecoveryResetPage: setRoute(+ "/account-recovery-reset",+ "/_restrict-login-signup/account-recovery-reset"+ ),PasswordSetupPage: setRoute("/password-setup", "/_authenticate/password-setup")},Admin: {diff --git a/frontend/src/hooks/api/accountRecovery/index.tsx b/frontend/src/hooks/api/accountRecovery/index.tsxindex 7cf76eb331..56704a6f17 100644--- a/frontend/src/hooks/api/accountRecovery/index.tsx+++ b/frontend/src/hooks/api/accountRecovery/index.tsx@@ -1 +1,5 @@-export { useSendAccountRecoveryEmail, useVerifyAccountRecoveryEmail } from "./mutation";+export {+ useEnableEmailAuthAccountRecovery,+ useSendAccountRecoveryEmail,+ useVerifyAccountRecoveryEmail+} from "./mutation";diff --git a/frontend/src/hooks/api/accountRecovery/mutation.tsx b/frontend/src/hooks/api/accountRecovery/mutation.tsxindex 2d9733c8a5..647ba2db69 100644--- a/frontend/src/hooks/api/accountRecovery/mutation.tsx+++ b/frontend/src/hooks/api/accountRecovery/mutation.tsx@@ -35,3 +35,21 @@ export const useVerifyAccountRecoveryEmail = () => {}});};++export const useEnableEmailAuthAccountRecovery = () => {+ return useMutation({+ mutationFn: async (token: string) => {+ const { data } = await apiRequest.post<TVerifyAccountRecoveryEmailResponse>(+ "/api/v1/account-recovery/enable-email-auth",+ undefined,+ {+ headers: {+ authorization: `Bearer ${token}`+ }+ }+ );++ return data;+ }+ });+};diff --git a/frontend/src/hooks/api/accountRecovery/types.ts b/frontend/src/hooks/api/accountRecovery/types.tsindex 567e28f484..6ca37ae83d 100644--- a/frontend/src/hooks/api/accountRecovery/types.ts+++ b/frontend/src/hooks/api/accountRecovery/types.ts@@ -12,4 +12,5 @@ export type TVerifyAccountRecoveryEmailDTO = {export type TVerifyAccountRecoveryEmailResponse = {token: string;userEncryptionVersion: UserEncryptionVersion;+ user: { id: string; authMethods: string[] };};diff --git a/frontend/src/pages/auth/AccountRecoveryPage/AccountRecoveryPage.tsx b/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsxsimilarity index 99%rename from frontend/src/pages/auth/AccountRecoveryPage/AccountRecoveryPage.tsxrename to frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsxindex e01a42fde7..f3eb485641 100644--- a/frontend/src/pages/auth/AccountRecoveryPage/AccountRecoveryPage.tsx+++ b/frontend/src/pages/auth/AccountRecoveryEmailPage/AccountRecoveryEmailPage.tsx@@ -7,7 +7,7 @@ import { usePopUp } from "@app/hooks";import { useSendAccountRecoveryEmail } from "@app/hooks/api";import { useFetchServerStatus } from "@app/hooks/api/serverDetails";-export const AccountRecoveryPage = () => {+export const AccountRecoveryEmailPage = () => {const [loading, setLoading] = useState(false);const [email, setEmail] = useState("");const [step, setStep] = useState(1);diff --git a/frontend/src/pages/auth/AccountRecoveryEmailPage/route.tsx b/frontend/src/pages/auth/AccountRecoveryEmailPage/route.tsxnew file mode 100644index 0000000000..c36581c100--- /dev/null+++ b/frontend/src/pages/auth/AccountRecoveryEmailPage/route.tsx@@ -0,0 +1,7 @@+import { createFileRoute } from "@tanstack/react-router";++import { AccountRecoveryEmailPage } from "./AccountRecoveryEmailPage";++export const Route = createFileRoute("/_restrict-login-signup/account-recovery")({+ component: AccountRecoveryEmailPage+});diff --git a/frontend/src/pages/auth/AccountRecoveryPage/route.tsx b/frontend/src/pages/auth/AccountRecoveryPage/route.tsxdeleted file mode 100644index ef0effd903..0000000000--- a/frontend/src/pages/auth/AccountRecoveryPage/route.tsx+++ /dev/null@@ -1,9 +0,0 @@-import { createFileRoute } from '@tanstack/react-router'--import { AccountRecoveryPage } from './AccountRecoveryPage'--export const Route = createFileRoute(- '/_restrict-login-signup/account-recovery',-)({- component: AccountRecoveryPage,-})diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsxnew file mode 100644index 0000000000..f598dcf7ca--- /dev/null+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx@@ -0,0 +1,121 @@+import { useState } from "react";+import { Link, useNavigate, useSearch } from "@tanstack/react-router";++import { createNotification } from "@app/components/notifications";+import { ConfirmActionModal } from "@app/components/v2";+import { ROUTE_PATHS } from "@app/const/routes";+import { usePopUp } from "@app/hooks";+import { useEnableEmailAuthAccountRecovery } from "@app/hooks/api";+import { UserEncryptionVersion } from "@app/hooks/api/auth/types";++import { ConfirmEmailStep } from "./components/ConfirmEmailStep";+import { EnterPasswordStep } from "./components/EnterPasswordStep";+import { InputBackupKeyStep } from "./components/InputBackupKeyStep";+import { RecoveryMethod, SelectRecoveryMethodStep } from "./components/SelectRecoveryMethodStep";++enum Steps {+ ConfirmEmail = 1,+ SelectRecoveryMethod = 2,+ InputBackupKey = 3,+ EnterNewPassword = 4+}++export const AccountRecoveryResetPage = () => {+ const search = useSearch({ from: ROUTE_PATHS.Auth.AccountRecoveryResetPage.id });+ const { to: email } = search;+ const { popUp, handlePopUpToggle, handlePopUpOpen } = usePopUp([+ "confirmEnableEmailAuth"+ ] as const);++ const [userDetails, setUserDetails] = useState({+ verificationToken: "",+ privateKey: "",+ hasEmailAuthEnabled: false,+ userEncryptionVersion: UserEncryptionVersion.V1+ });++ const [step, setStep] = useState<Steps>(Steps.ConfirmEmail);+ const navigate = useNavigate();+ const enableEmailAuth = useEnableEmailAuthAccountRecovery();++ const handleRecoveryMethodSelect = (method: RecoveryMethod) => {+ if (method === RecoveryMethod.ChangePassword) {+ if (userDetails.userEncryptionVersion === UserEncryptionVersion.V2) {+ setStep(Steps.EnterNewPassword);+ } else {+ setStep(Steps.InputBackupKey);+ }+ } else if (method === RecoveryMethod.DomainOrSSOChange) {+ handlePopUpOpen("confirmEnableEmailAuth");+ }+ };++ const handleEnableEmailAuth = async () => {+ await enableEmailAuth.mutateAsync(userDetails.verificationToken);+ setUserDetails((prev) => ({ ...prev, hasEmailAuthEnabled: true }));+ handlePopUpToggle("confirmEnableEmailAuth", false);+ createNotification({+ type: "success",+ text: "Email authentication has been enabled for your account."+ });+ };++ return (+ <div className="flex min-h-screen flex-col justify-center bg-gradient-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6 pb-28">+ <Link to="/">+ <div className="mt-20 mb-4 flex justify-center">+ <img src="/images/gradientLogo.svg" className="h-[90px] w-[120px]" alt="Infisical Logo" />+ </div>+ </Link>+ {step === Steps.ConfirmEmail && (+ <ConfirmEmailStep+ onComplete={(verifyToken, userEncryptionVersion, hasEmailAuth) => {+ setUserDetails((prev) => ({+ ...prev,+ verificationToken: verifyToken,+ userEncryptionVersion,+ hasEmailAuthEnabled: hasEmailAuth+ }));+ setStep(Steps.SelectRecoveryMethod);+ }}+ />+ )}+ {step === Steps.SelectRecoveryMethod && (+ <SelectRecoveryMethodStep+ email={email}+ onSelect={handleRecoveryMethodSelect}+ hasEmailAuthEnabled={userDetails.hasEmailAuthEnabled}+ />+ )}+ {step === Steps.InputBackupKey && (+ <InputBackupKeyStep+ verificationToken={userDetails.verificationToken}+ onComplete={(key) => {+ setUserDetails((prev) => ({ ...prev, privateKey: key }));+ setStep(Steps.EnterNewPassword);+ }}+ />+ )}+ {step === Steps.EnterNewPassword && (+ <EnterPasswordStep+ verificationToken={userDetails.verificationToken}+ privateKey={userDetails.privateKey}+ encryptionVersion={userDetails.userEncryptionVersion}+ onComplete={() => {+ navigate({ to: "/login" });+ }}+ onBack={() => setStep(Steps.SelectRecoveryMethod)}+ />+ )}+ <ConfirmActionModal+ isOpen={popUp.confirmEnableEmailAuth.isOpen}+ confirmKey="enable"+ title="Enable Email Authentication"+ subTitle={`Do you want to enable email authentication for your account (${email})? This will allow you to log in using your email and password in the future.`}+ onChange={(isOpen) => handlePopUpToggle("confirmEnableEmailAuth", isOpen)}+ onConfirmed={handleEnableEmailAuth}+ buttonText="Enable"+ />+ </div>+ );+};diff --git a/frontend/src/pages/auth/PasswordResetPage/components/ConfirmEmailStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsxsimilarity index 75%rename from frontend/src/pages/auth/PasswordResetPage/components/ConfirmEmailStep.tsxrename to frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsxindex ebbbd3c465..5323df3017 100644--- a/frontend/src/pages/auth/PasswordResetPage/components/ConfirmEmailStep.tsx+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/ConfirmEmailStep.tsx@@ -4,14 +4,19 @@ import { Button } from "@app/components/v2";import { ROUTE_PATHS } from "@app/const/routes";import { useVerifyAccountRecoveryEmail } from "@app/hooks/api";import { UserEncryptionVersion } from "@app/hooks/api/auth/types";+import { AuthMethod } from "@app/hooks/api/users/types";type Props = {- onComplete: (verificationToken: string, encryptionVersion: UserEncryptionVersion) => void;+ onComplete: (+ verificationToken: string,+ encryptionVersion: UserEncryptionVersion,+ hasEmailAuth: boolean+ ) => void;};export const ConfirmEmailStep = ({ onComplete }: Props) => {const navigate = useNavigate();- const search = useSearch({ from: ROUTE_PATHS.Auth.PasswordResetPage.id });+ const search = useSearch({ from: ROUTE_PATHS.Auth.AccountRecoveryResetPage.id });const { token, to: email } = search;const {@@ -24,7 +29,7 @@ export const ConfirmEmailStep = ({ onComplete }: Props) => {Confirm your email</h1><p className="mb-8 w-max justify-center text-center text-sm text-gray-400">- Reset password for <span className="italic">{email}</span>.+ Recover account for <span className="italic">{email}</span>.</p><div className="w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6"><Button@@ -41,7 +46,11 @@ export const ConfirmEmailStep = ({ onComplete }: Props) => {code: token});- onComplete(response.token, response.userEncryptionVersion);+ onComplete(+ response.token,+ response.userEncryptionVersion,+ response.user.authMethods.includes(AuthMethod.EMAIL)+ );} catch (err) {console.log("ERROR", err);navigate({ to: "/email-not-verified" });diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsxnew file mode 100644index 0000000000..75dd46d2e3--- /dev/null+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/EnterPasswordStep.tsx@@ -0,0 +1,285 @@+import crypto from "crypto";++import { useState } from "react";+import { faCheck, faXmark } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useSearch } from "@tanstack/react-router";+import jsrp from "jsrp";+import { ChevronLeft } from "lucide-react";++import { checkIsPasswordBreached } from "@app/components/utilities/checks/password/checkIsPasswordBreached";+import {+ escapeCharRegex,+ letterCharRegex,+ lowEntropyRegexes,+ numAndSpecialCharRegex,+ repeatedCharRegex+} from "@app/components/utilities/checks/password/passwordRegexes";+import Aes256Gcm from "@app/components/utilities/cryptography/aes-256-gcm";+import { deriveArgonKey } from "@app/components/utilities/cryptography/crypto";+import { FormControl, Input } from "@app/components/v2";+import { Button } from "@app/components/v3";+import { ROUTE_PATHS } from "@app/const/routes";+import { useResetPassword, useResetPasswordV2 } from "@app/hooks/api";+import { UserEncryptionVersion } from "@app/hooks/api/auth/types";++type PasswordErrors = {+ tooShort: boolean;+ tooLong: boolean;+ noLetterChar: boolean;+ noNumOrSpecialChar: boolean;+ repeatedChar: boolean;+ escapeChar: boolean;+ lowEntropy: boolean;+ breached: boolean;+};++const validatePassword = (password: string): Omit<PasswordErrors, "breached"> => {+ return {+ tooShort: password.length < 14,+ tooLong: password.length > 100,+ noLetterChar: !letterCharRegex.test(password),+ noNumOrSpecialChar: !numAndSpecialCharRegex.test(password),+ repeatedChar: repeatedCharRegex.test(password),+ escapeChar: escapeCharRegex.test(password),+ lowEntropy: lowEntropyRegexes.some((regex) => regex.test(password))+ };+};++const hasValidationErrors = (errors: PasswordErrors): boolean => {+ return Object.values(errors).some(Boolean);+};++type Props = {+ verificationToken: string;+ privateKey: string;+ encryptionVersion: UserEncryptionVersion;+ onComplete: () => void;+ onBack: () => void;+};++export const EnterPasswordStep = ({+ verificationToken,+ encryptionVersion,+ privateKey,+ onComplete,+ onBack+}: Props) => {+ const search = useSearch({ from: ROUTE_PATHS.Auth.AccountRecoveryResetPage.id });+ const { to: email } = search;++ const [password, setPassword] = useState("");+ const [confirmPassword, setConfirmPassword] = useState("");+ const [passwordErrors, setPasswordErrors] = useState<PasswordErrors>({+ tooShort: false,+ tooLong: false,+ noLetterChar: false,+ noNumOrSpecialChar: false,+ repeatedChar: false,+ escapeChar: false,+ lowEntropy: false,+ breached: false+ });+ const [isSubmitting, setIsSubmitting] = useState(false);++ const passwordsMatch = password === confirmPassword;+ const showConfirmError = confirmPassword.length > 0 && !passwordsMatch;++ const { mutateAsync: resetPassword, isPending: isLoading } = useResetPassword();+ const { mutateAsync: resetPasswordV2, isPending: isLoadingV2 } = useResetPasswordV2();++ const handlePasswordChange = (value: string) => {+ setPassword(value);+ const errors = validatePassword(value);+ setPasswordErrors((prev) => ({ ...prev, ...errors }));+ };++ const handleSubmit = async (e: React.FormEvent) => {+ e.preventDefault();++ // Validate and check for breached password on submit+ const errors = validatePassword(password);+ const isBreached = await checkIsPasswordBreached(password);+ const finalErrors = { ...errors, breached: isBreached };+ setPasswordErrors(finalErrors);++ if (hasValidationErrors(finalErrors) || !passwordsMatch) return;++ setIsSubmitting(true);++ try {+ if (encryptionVersion === UserEncryptionVersion.V2) {+ await resetPasswordV2({+ newPassword: password,+ verificationToken+ });+ onComplete();+ } else {+ // eslint-disable-next-line new-cap+ const client = new jsrp.client();+ client.init(+ {+ username: email,+ password+ },+ async () => {+ client.createVerifier(async (_err: any, result: { salt: string; verifier: string }) => {+ const derivedKey = await deriveArgonKey({+ password,+ salt: result.salt,+ mem: 65536,+ time: 3,+ parallelism: 1,+ hashLen: 32+ });++ if (!derivedKey) throw new Error("Failed to derive key from password");++ const key = crypto.randomBytes(32);++ // create encrypted private key by encrypting the private+ // key with the symmetric key [key]+ const {+ ciphertext: encryptedPrivateKey,+ iv: encryptedPrivateKeyIV,+ tag: encryptedPrivateKeyTag+ } = Aes256Gcm.encrypt({+ text: privateKey,+ secret: key+ });++ // create the protected key by encrypting the symmetric key+ // [key] with the derived key+ const {+ ciphertext: protectedKey,+ iv: protectedKeyIV,+ tag: protectedKeyTag+ } = Aes256Gcm.encrypt({+ text: key.toString("hex"),+ secret: Buffer.from(derivedKey.hash)+ });++ await resetPassword({+ protectedKey,+ protectedKeyIV,+ protectedKeyTag,+ encryptedPrivateKey,+ encryptedPrivateKeyIV,+ encryptedPrivateKeyTag,+ salt: result.salt,+ verifier: result.verifier,+ verificationToken,+ password+ });++ onComplete();+ });+ }+ );+ }+ } finally {+ setIsSubmitting(false);+ }+ };++ const isPasswordError = hasValidationErrors(passwordErrors);+ const isFormLoading = isSubmitting || isLoading || isLoadingV2;++ const validationRules = [+ { key: "tooShort", label: "at least 14 characters", hasError: passwordErrors.tooShort },+ { key: "tooLong", label: "at most 100 characters", hasError: passwordErrors.tooLong },+ {+ key: "noLetterChar",+ label: "at least 1 letter character",+ hasError: passwordErrors.noLetterChar+ },+ {+ key: "noNumOrSpecialChar",+ label: "at least 1 number or special character",+ hasError: passwordErrors.noNumOrSpecialChar+ },+ {+ key: "repeatedChar",+ label: "at most 3 repeated, consecutive characters",+ hasError: passwordErrors.repeatedChar+ },+ {+ key: "escapeChar",+ label: "No escape characters allowed.",+ hasError: passwordErrors.escapeChar+ },+ {+ key: "lowEntropy",+ label: "Password contains personal info.",+ hasError: passwordErrors.lowEntropy+ },+ {+ key: "breached",+ label: "Password was found in a data breach.",+ hasError: passwordErrors.breached+ }+ ];++ return (+ <form+ onSubmit={handleSubmit}+ className="mx-auto flex w-full max-w-md flex-col items-center justify-center"+ >+ <h1 className="mb-2 bg-gradient-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">+ Enter new password+ </h1>+ <p className="w-max justify-center text-center text-sm text-gray-400">+ Make sure you save it somewhere safe.+ </p>+ <FormControl+ className="mt-8 w-full"+ label="New Password"+ isRequired+ isError={isPasswordError}+ >+ <Input+ value={password}+ onChange={(e) => handlePasswordChange(e.target.value)}+ type="password"+ />+ </FormControl>+ <FormControl+ className="w-full"+ label="Confirm Password"+ isRequired+ isError={showConfirmError}+ errorText="Passwords do not match"+ >+ <Input+ value={confirmPassword}+ onChange={(e) => setConfirmPassword(e.target.value)}+ type="password"+ />+ </FormControl>+ <Button type="submit" isFullWidth isPending={isFormLoading} isDisabled={isFormLoading}>+ Change Password+ </Button>+ <div className="mt-4 w-full rounded-sm border border-mineshaft-600 bg-mineshaft-800 p-4 drop-shadow-sm">+ <div className="mb-1 ml-2 text-sm text-gray-300">Password requirements</div>+ {validationRules.map((rule) => (+ <div key={rule.key} className="mt-2 ml-2 flex flex-row items-center justify-start">+ {rule.hasError ? (+ <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />+ ) : (+ <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />+ )}+ <div className={`${rule.hasError ? "text-gray-400" : "text-gray-600"} text-sm`}>+ {rule.label}+ </div>+ </div>+ ))}+ </div>+ <div>+ <Button variant="ghost" className="mt-6 text-mineshaft-300" onClick={onBack}>+ <ChevronLeft className="mr-2 h-4 w-4" />+ <span className="text-sm">Back to recovery options</span>+ </Button>+ </div>+ </form>+ );+};diff --git a/frontend/src/pages/auth/PasswordResetPage/components/InputBackupKeyStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/InputBackupKeyStep.tsxsimilarity index 100%rename from frontend/src/pages/auth/PasswordResetPage/components/InputBackupKeyStep.tsxrename to frontend/src/pages/auth/AccountRecoveryResetPage/components/InputBackupKeyStep.tsxdiff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsxnew file mode 100644index 0000000000..c750a67361--- /dev/null+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/components/SelectRecoveryMethodStep.tsx@@ -0,0 +1,99 @@+import { ChevronRight, Info, KeyRound } from "lucide-react";+import { twMerge } from "tailwind-merge";++export enum RecoveryMethod {+ ChangePassword = "change-password",+ DomainOrSSOChange = "domain-or-sso-change"+}++type Props = {+ email: string;+ onSelect: (method: RecoveryMethod) => void;+ hasEmailAuthEnabled?: boolean;+};++export const SelectRecoveryMethodStep = ({ email, onSelect, hasEmailAuthEnabled }: Props) => {+ const recoveryMethods = [+ {+ method: RecoveryMethod.ChangePassword,+ label: "Change your password",+ description: "Reset your password if you've forgotten it or want to update it for security.",+ info: "Use this if you normally sign in with email and password",+ onSelect: () => onSelect(RecoveryMethod.ChangePassword),+ isDisabled: !hasEmailAuthEnabled,+ disabledReason: "You need to have email sign-in enabled to use this recovery method."+ },+ {+ method: RecoveryMethod.DomainOrSSOChange,+ label: "Domain or SSO change",+ description:+ "Lost access to your Google/SSO account due to a company domain change? Enable email sign-in to regain access.",+ info: "Use this if you only signed in with Google and can no longer access that Google account",+ onSelect: () => onSelect(RecoveryMethod.DomainOrSSOChange),+ isDisabled: hasEmailAuthEnabled,+ disabledReason: "You already have email sign-in enabled."+ }+ ];++ return (+ <div className="mx-auto flex w-full max-w-2xl flex-col items-center justify-center">+ <h1 className="mb-2 bg-gradient-to-b from-white to-bunker-200 bg-clip-text text-center text-2xl font-medium text-transparent">+ Account Recovery+ </h1>+ <p className="mb-4 text-center text-sm text-gray-300">+ Email verified successfully for <span className="font-medium text-white">{email}</span>+ </p>+ <p className="mb-8 text-center text-sm text-gray-500">+ Select how you'd like to recover access to your account+ </p>+ <div className="flex w-full flex-col gap-4">+ {recoveryMethods.map((recoveryMethod) => (+ <button+ key={recoveryMethod.method}+ type="button"+ onClick={recoveryMethod.onSelect}+ disabled={recoveryMethod.isDisabled}+ className={twMerge(+ "group w-full rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4 text-left transition-colors hover:border-mineshaft-500 hover:bg-mineshaft-700",+ recoveryMethod.isDisabled && "cursor-not-allowed"+ )}+ >+ <div+ className={twMerge(+ "flex items-start gap-4",+ recoveryMethod.isDisabled && "opacity-50"+ )}+ >+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-mineshaft-700 group-hover:bg-mineshaft-600">+ <KeyRound className="text-lg text-mineshaft-300" />+ </div>+ <div className="flex-1">+ <div className="flex items-center gap-2">+ <span className="font-medium text-gray-200">{recoveryMethod.label}</span>+ </div>+ <p className="mt-1 text-sm text-gray-400">{recoveryMethod.description}</p>+ <p className="mt-2 text-xs text-gray-500">{recoveryMethod.info}</p>+ </div>+ <ChevronRight className="mt-3 text-gray-500 transition-transform group-hover:translate-x-1" />+ </div>+ {recoveryMethod.isDisabled && recoveryMethod.disabledReason && (+ <div className="mt-4 flex items-start gap-2 rounded-md bg-muted p-3">+ <Info className="mt-0.5 h-4 w-4 shrink-0 text-background" />+ <p className="text-xs text-background">{recoveryMethod.disabledReason}</p>+ </div>+ )}+ </button>+ ))}+ </div>+ <div className="mt-6 w-full rounded-lg border border-mineshaft-600 bg-mineshaft-800/50 p-4">+ <p className="font-medium text-gray-300">Not sure which to choose?</p>+ <p className="mt-2 text-sm text-gray-500">+ If your company changed email domains (e.g., from @oldcompany.com to @newcompany.com) and+ you used Google sign-in, select{" "}+ <span className="font-medium text-gray-300">"Domain or SSO change"</span>. This+ will let you set up a password so you can sign in with your new email.+ </p>+ </div>+ </div>+ );+};diff --git a/frontend/src/pages/auth/AccountRecoveryResetPage/route.tsx b/frontend/src/pages/auth/AccountRecoveryResetPage/route.tsxnew file mode 100644index 0000000000..a0ad16d372--- /dev/null+++ b/frontend/src/pages/auth/AccountRecoveryResetPage/route.tsx@@ -0,0 +1,15 @@+import { createFileRoute } from "@tanstack/react-router";+import { zodValidator } from "@tanstack/zod-adapter";+import { z } from "zod";++import { AccountRecoveryResetPage } from "./AccountRecoveryResetPage";++const AccountRecoveryResetPageQueryParamsSchema = z.object({+ token: z.string(),+ to: z.string()+});++export const Route = createFileRoute("/_restrict-login-signup/account-recovery-reset")({+ component: AccountRecoveryResetPage,+ validateSearch: zodValidator(AccountRecoveryResetPageQueryParamsSchema)+});diff --git a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsxindex 4e8f2ba2c6..aa68ac2a49 100644--- a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx+++ b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx@@ -381,7 +381,7 @@ export const PasswordStep = ({Infisical Master Password serves as a decryption mechanism so that even Google is not ableto access your secrets.</span>- <Link to="/verify-email">+ <Link to="/account-recovery"><span className="mt-2 cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">{t("login.forgot-password")}</span>diff --git a/frontend/src/pages/auth/PasswordResetPage/PasswordResetPage.tsx b/frontend/src/pages/auth/PasswordResetPage/PasswordResetPage.tsxdeleted file mode 100644index 49252f16ab..0000000000--- a/frontend/src/pages/auth/PasswordResetPage/PasswordResetPage.tsx+++ /dev/null@@ -1,80 +0,0 @@-import { useState } from "react";-import { useForm } from "react-hook-form";-import { zodResolver } from "@hookform/resolvers/zod";-import { Link, useNavigate } from "@tanstack/react-router";-import { z } from "zod";--import { UserEncryptionVersion } from "@app/hooks/api/auth/types";--import { ConfirmEmailStep } from "./components/ConfirmEmailStep";-import { EnterPasswordStep } from "./components/EnterPasswordStep";-import { InputBackupKeyStep } from "./components/InputBackupKeyStep";--enum Steps {- ConfirmEmail = 1,- InputBackupKey = 2,- EnterNewPassword = 3-}--const formData = z.object({- verificationToken: z.string(),- privateKey: z.string(),- userEncryptionVersion: z.nativeEnum(UserEncryptionVersion)-});-type TFormData = z.infer<typeof formData>;--export const PasswordResetPage = () => {- const { watch, setValue } = useForm<TFormData>({- resolver: zodResolver(formData)- });-- const verificationToken = watch("verificationToken");- const encryptionVersion = watch("userEncryptionVersion");- const privateKey = watch("privateKey");-- const [step, setStep] = useState<Steps>(Steps.ConfirmEmail);- const navigate = useNavigate();-- return (- <div className="flex min-h-screen flex-col justify-center bg-linear-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6 pb-28">- <Link to="/">- <div className="mt-20 mb-4 flex justify-center">- <img src="/images/gradientLogo.svg" className="h-[90px] w-[120px]" alt="Infisical Logo" />- </div>- </Link>- {step === Steps.ConfirmEmail && (- <ConfirmEmailStep- onComplete={(verifyToken, userEncryptionVersion) => {- setValue("verificationToken", verifyToken);- setValue("userEncryptionVersion", userEncryptionVersion);-- if (userEncryptionVersion === UserEncryptionVersion.V2) {- setStep(Steps.EnterNewPassword);- } else {- setStep(Steps.InputBackupKey);- }- }}- />- )}- {step === Steps.InputBackupKey && (- <InputBackupKeyStep- verificationToken={verificationToken}- onComplete={(key) => {- setValue("privateKey", key);- setStep(Steps.EnterNewPassword);- }}- />- )}- {step === Steps.EnterNewPassword && (- <EnterPasswordStep- verificationToken={verificationToken}- privateKey={privateKey}- encryptionVersion={encryptionVersion}- onComplete={() => {- navigate({ to: "/login" });- }}- />- )}- </div>- );-};diff --git a/frontend/src/pages/auth/PasswordResetPage/components/EnterPasswordStep.tsx b/frontend/src/pages/auth/PasswordResetPage/components/EnterPasswordStep.tsxdeleted file mode 100644index 39d5c66fe3..0000000000--- a/frontend/src/pages/auth/PasswordResetPage/components/EnterPasswordStep.tsx+++ /dev/null@@ -1,323 +0,0 @@-import crypto from "crypto";--import { Controller, useForm } from "react-hook-form";-import { faCheck, faXmark } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { zodResolver } from "@hookform/resolvers/zod";-import { useSearch } from "@tanstack/react-router";-import jsrp from "jsrp";-import { z } from "zod";--import passwordCheck from "@app/components/utilities/checks/password/PasswordCheck";-import Aes256Gcm from "@app/components/utilities/cryptography/aes-256-gcm";-import { deriveArgonKey } from "@app/components/utilities/cryptography/crypto";-import { Button, FormControl, Input } from "@app/components/v2";-import { ROUTE_PATHS } from "@app/const/routes";-import { useResetPassword, useResetPasswordV2 } from "@app/hooks/api";-import { UserEncryptionVersion } from "@app/hooks/api/auth/types";--const formData = z.object({- password: z.string(),- passwordErrorTooShort: z.boolean().optional(),- passwordErrorTooLong: z.boolean().optional(),- passwordErrorNoLetterChar: z.boolean().optional(),- passwordErrorNoNumOrSpecialChar: z.boolean().optional(),- passwordErrorRepeatedChar: z.boolean().optional(),- passwordErrorEscapeChar: z.boolean().optional(),- passwordErrorLowEntropy: z.boolean().optional(),- passwordErrorBreached: z.boolean()-});-type TFormData = z.infer<typeof formData>;--type Props = {- verificationToken: string;- privateKey: string;- encryptionVersion: UserEncryptionVersion;- onComplete: () => void;-};--export const EnterPasswordStep = ({- verificationToken,- encryptionVersion,- privateKey,- onComplete-}: Props) => {- const search = useSearch({ from: ROUTE_PATHS.Auth.PasswordResetPage.id });- const { to: email } = search;-- const {- control,- watch,- handleSubmit,- setValue,- formState: { isSubmitting }- } = useForm<TFormData>({- resolver: zodResolver(formData)- });- const { mutateAsync: resetPassword, isPending: isLoading } = useResetPassword();- const { mutateAsync: resetPasswordV2, isPending: isLoadingV2 } = useResetPasswordV2();-- const passwordErrorTooShort = watch("passwordErrorTooShort");- const passwordErrorTooLong = watch("passwordErrorTooLong");- const passwordErrorNoLetterChar = watch("passwordErrorNoLetterChar");- const passwordErrorNoNumOrSpecialChar = watch("passwordErrorNoNumOrSpecialChar");- const passwordErrorRepeatedChar = watch("passwordErrorRepeatedChar");- const passwordErrorEscapeChar = watch("passwordErrorEscapeChar");- const passwordErrorLowEntropy = watch("passwordErrorLowEntropy");- const passwordErrorBreached = watch("passwordErrorBreached");-- const isPasswordError =- passwordErrorTooShort ||- passwordErrorTooLong ||- passwordErrorNoLetterChar ||- passwordErrorNoNumOrSpecialChar ||- passwordErrorRepeatedChar ||- passwordErrorEscapeChar ||- passwordErrorLowEntropy ||- passwordErrorBreached;-- const handlePasswordCheck = async (checkPassword: string) => {- const errorCheck = await passwordCheck({- password: checkPassword,- setPasswordErrorTooShort: (v) => setValue("passwordErrorTooShort", v),- setPasswordErrorTooLong: (v) => setValue("passwordErrorTooLong", v),- setPasswordErrorNoLetterChar: (v) => setValue("passwordErrorNoLetterChar", v),- setPasswordErrorNoNumOrSpecialChar: (v) => setValue("passwordErrorNoNumOrSpecialChar", v),- setPasswordErrorRepeatedChar: (v) => setValue("passwordErrorRepeatedChar", v),- setPasswordErrorEscapeChar: (v) => setValue("passwordErrorEscapeChar", v),- setPasswordErrorLowEntropy: (v) => setValue("passwordErrorLowEntropy", v),- setPasswordErrorBreached: (v) => setValue("passwordErrorBreached", v)- });-- return errorCheck;- };-- const resetPasswordHandler = async (data: TFormData) => {- const errorCheck = await handlePasswordCheck(data.password);-- if (errorCheck) return;-- if (encryptionVersion === UserEncryptionVersion.V2) {- await resetPasswordV2({- newPassword: data.password,- verificationToken- });- } else {- // eslint-disable-next-line new-cap- const client = new jsrp.client();- client.init(- {- username: email,- password: data.password- },- async () => {- client.createVerifier(async (_err: any, result: { salt: string; verifier: string }) => {- const derivedKey = await deriveArgonKey({- password: data.password,- salt: result.salt,- mem: 65536,- time: 3,- parallelism: 1,- hashLen: 32- });-- if (!derivedKey) throw new Error("Failed to derive key from password");-- const key = crypto.randomBytes(32);-- // create encrypted private key by encrypting the private- // key with the symmetric key [key]- const {- ciphertext: encryptedPrivateKey,- iv: encryptedPrivateKeyIV,- tag: encryptedPrivateKeyTag- } = Aes256Gcm.encrypt({- text: privateKey,- secret: key- });-- // create the protected key by encrypting the symmetric key- // [key] with the derived key- const {- ciphertext: protectedKey,- iv: protectedKeyIV,- tag: protectedKeyTag- } = Aes256Gcm.encrypt({- text: key.toString("hex"),- secret: Buffer.from(derivedKey.hash)- });-- await resetPassword({- protectedKey,- protectedKeyIV,- protectedKeyTag,- encryptedPrivateKey,- encryptedPrivateKeyIV,- encryptedPrivateKeyTag,- salt: result.salt,- verifier: result.verifier,- verificationToken,- password: data.password- });- });- }- );- }- onComplete();- };-- return (- <form- onSubmit={handleSubmit(resetPasswordHandler)}- className="mx-auto flex w-full flex-col items-center justify-center"- >- <h1 className="mb-2 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">- Enter new password- </h1>- <p className="w-max justify-center text-center text-sm text-gray-400">- Make sure you save it somewhere safe.- </p>- <div className="mt-8 w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">- <Controller- control={control}- name="password"- render={({ field }) => (- <FormControl- className="w-full"- label="New Password"- isRequired- isError={isPasswordError}- >- <Input- {...field}- onChange={(e) => {- field.onChange(e);- handlePasswordCheck(e.target.value);- }}- type="password"- />- </FormControl>- )}- />- </div>- <div className="w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">- <Button- type="submit"- size="sm"- isFullWidth- className="h-10"- colorSchema="primary"- variant="solid"- isLoading={isSubmitting || isLoading || isLoadingV2}- isDisabled={isSubmitting || isLoading || isLoadingV2}- >- Change Password- </Button>- </div>- {passwordErrorTooShort ||- passwordErrorTooLong ||- passwordErrorNoLetterChar ||- passwordErrorNoNumOrSpecialChar ||- passwordErrorRepeatedChar ||- passwordErrorEscapeChar ||- passwordErrorLowEntropy ||- passwordErrorBreached ? (- <div className="mt-4 rounded-sm border border-mineshaft-600 bg-mineshaft-800 p-4 drop-shadow-sm">- <div className="mb-1 ml-2 text-sm text-gray-300">Password should contain:</div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorTooShort ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div className={`${passwordErrorTooShort ? "text-gray-400" : "text-gray-600"} text-sm`}>- at least 14 characters- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorTooLong ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div className={`${passwordErrorTooLong ? "text-gray-400" : "text-gray-600"} text-sm`}>- at most 100 characters- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorNoLetterChar ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div- className={`${passwordErrorNoLetterChar ? "text-gray-400" : "text-gray-600"} text-sm`}- >- at least 1 letter character- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorNoNumOrSpecialChar ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div- className={`${- passwordErrorNoNumOrSpecialChar ? "text-gray-400" : "text-gray-600"- } text-sm`}- >- at least 1 number or special character- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorRepeatedChar ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div- className={`${passwordErrorRepeatedChar ? "text-gray-400" : "text-gray-600"} text-sm`}- >- at most 3 repeated, consecutive characters- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorEscapeChar ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div- className={`${passwordErrorEscapeChar ? "text-gray-400" : "text-gray-600"} text-sm`}- >- No escape characters allowed.- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorLowEntropy ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div- className={`${passwordErrorLowEntropy ? "text-gray-400" : "text-gray-600"} text-sm`}- >- Password contains personal info.- </div>- </div>- <div className="ml-2 flex flex-row items-center justify-start">- {passwordErrorBreached ? (- <FontAwesomeIcon icon={faXmark} className="mr-2.5 text-lg text-red" />- ) : (- <FontAwesomeIcon icon={faCheck} className="text-md mr-2 text-green" />- )}- <div className={`${passwordErrorBreached ? "text-gray-400" : "text-gray-600"} text-sm`}>- Password was found in a data breach.- </div>- </div>- </div>- ) : null}- </form>- );-};diff --git a/frontend/src/pages/auth/PasswordResetPage/route.tsx b/frontend/src/pages/auth/PasswordResetPage/route.tsxdeleted file mode 100644index b2c926d791..0000000000--- a/frontend/src/pages/auth/PasswordResetPage/route.tsx+++ /dev/null@@ -1,15 +0,0 @@-import { createFileRoute } from "@tanstack/react-router";-import { zodValidator } from "@tanstack/zod-adapter";-import { z } from "zod";--import { PasswordResetPage } from "./PasswordResetPage";--const PasswordResetPageQueryParamsSchema = z.object({- token: z.string(),- to: z.string()-});--export const Route = createFileRoute("/_restrict-login-signup/password-reset")({- component: PasswordResetPage,- validateSearch: zodValidator(PasswordResetPageQueryParamsSchema)-});diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.tsindex ba6d11bfaa..f2e3001a0d 100644--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@ -22,9 +22,9 @@ import { Route as indexImport } from './pages/index'import { Route as middlewaresInjectOrgDetailsImport } from './pages/middlewares/inject-org-details'import { Route as authSignUpInvitePageRouteImport } from './pages/auth/SignUpInvitePage/route'import { Route as authRequestNewInvitePageRouteImport } from './pages/auth/RequestNewInvitePage/route'-import { Route as authPasswordResetPageRouteImport } from './pages/auth/PasswordResetPage/route'import { Route as authEmailNotVerifiedPageRouteImport } from './pages/auth/EmailNotVerifiedPage/route'-import { Route as authAccountRecoveryPageRouteImport } from './pages/auth/AccountRecoveryPage/route'+import { Route as authAccountRecoveryResetPageRouteImport } from './pages/auth/AccountRecoveryResetPage/route'+import { Route as authAccountRecoveryEmailPageRouteImport } from './pages/auth/AccountRecoveryEmailPage/route'import { Route as authPasswordSetupPageRouteImport } from './pages/auth/PasswordSetupPage/route'import { Route as userLayoutImport } from './pages/user/layout'import { Route as organizationLayoutImport } from './pages/organization/layout'@@ -441,14 +441,6 @@ const authRequestNewInvitePageRouteRoute =getParentRoute: () => middlewaresRestrictLoginSignupRoute,} as any)-const authPasswordResetPageRouteRoute = authPasswordResetPageRouteImport.update(- {- id: '/password-reset',- path: '/password-reset',- getParentRoute: () => middlewaresRestrictLoginSignupRoute,- } as any,-)-const authEmailNotVerifiedPageRouteRoute =authEmailNotVerifiedPageRouteImport.update({id: '/email-not-verified',@@ -456,8 +448,15 @@ const authEmailNotVerifiedPageRouteRoute =getParentRoute: () => middlewaresRestrictLoginSignupRoute,} as any)-const authAccountRecoveryPageRouteRoute =- authAccountRecoveryPageRouteImport.update({+const authAccountRecoveryResetPageRouteRoute =+ authAccountRecoveryResetPageRouteImport.update({+ id: '/account-recovery-reset',+ path: '/account-recovery-reset',+ getParentRoute: () => middlewaresRestrictLoginSignupRoute,+ } as any)++const authAccountRecoveryEmailPageRouteRoute =+ authAccountRecoveryEmailPageRouteImport.update({id: '/account-recovery',path: '/account-recovery',getParentRoute: () => middlewaresRestrictLoginSignupRoute,@@ -2429,7 +2428,14 @@ declare module '@tanstack/react-router' {id: '/_restrict-login-signup/account-recovery'path: '/account-recovery'fullPath: '/account-recovery'- preLoaderRoute: typeof authAccountRecoveryPageRouteImport+ preLoaderRoute: typeof authAccountRecoveryEmailPageRouteImport+ parentRoute: typeof middlewaresRestrictLoginSignupImport+ }+ '/_restrict-login-signup/account-recovery-reset': {+ id: '/_restrict-login-signup/account-recovery-reset'+ path: '/account-recovery-reset'+ fullPath: '/account-recovery-reset'+ preLoaderRoute: typeof authAccountRecoveryResetPageRouteImportparentRoute: typeof middlewaresRestrictLoginSignupImport}'/_restrict-login-signup/email-not-verified': {@@ -2439,13 +2445,6 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof authEmailNotVerifiedPageRouteImportparentRoute: typeof middlewaresRestrictLoginSignupImport}- '/_restrict-login-signup/password-reset': {- id: '/_restrict-login-signup/password-reset'- path: '/password-reset'- fullPath: '/password-reset'- preLoaderRoute: typeof authPasswordResetPageRouteImport- parentRoute: typeof middlewaresRestrictLoginSignupImport- }'/_restrict-login-signup/requestnewinvite': {id: '/_restrict-login-signup/requestnewinvite'path: '/requestnewinvite'@@ -5384,9 +5383,9 @@ const RestrictLoginSignupSignupRouteWithChildren =)interface middlewaresRestrictLoginSignupRouteChildren {- authAccountRecoveryPageRouteRoute: typeof authAccountRecoveryPageRouteRoute+ authAccountRecoveryEmailPageRouteRoute: typeof authAccountRecoveryEmailPageRouteRoute+ authAccountRecoveryResetPageRouteRoute: typeof authAccountRecoveryResetPageRouteRouteauthEmailNotVerifiedPageRouteRoute: typeof authEmailNotVerifiedPageRouteRoute- authPasswordResetPageRouteRoute: typeof authPasswordResetPageRouteRouteauthRequestNewInvitePageRouteRoute: typeof authRequestNewInvitePageRouteRouteauthSignUpInvitePageRouteRoute: typeof authSignUpInvitePageRouteRouteRestrictLoginSignupLoginRoute: typeof RestrictLoginSignupLoginRouteWithChildren@@ -5396,9 +5395,11 @@ interface middlewaresRestrictLoginSignupRouteChildren {const middlewaresRestrictLoginSignupRouteChildren: middlewaresRestrictLoginSignupRouteChildren ={- authAccountRecoveryPageRouteRoute: authAccountRecoveryPageRouteRoute,+ authAccountRecoveryEmailPageRouteRoute:+ authAccountRecoveryEmailPageRouteRoute,+ authAccountRecoveryResetPageRouteRoute:+ authAccountRecoveryResetPageRouteRoute,authEmailNotVerifiedPageRouteRoute: authEmailNotVerifiedPageRouteRoute,- authPasswordResetPageRouteRoute: authPasswordResetPageRouteRoute,authRequestNewInvitePageRouteRoute: authRequestNewInvitePageRouteRoute,authSignUpInvitePageRouteRoute: authSignUpInvitePageRouteRoute,RestrictLoginSignupLoginRoute: RestrictLoginSignupLoginRouteWithChildren,@@ -5418,9 +5419,9 @@ export interface FileRoutesByFullPath {'/upgrade-path': typeof publicUpgradePathPageRouteRoute'': typeof organizationLayoutRouteWithChildren'/password-setup': typeof authPasswordSetupPageRouteRoute- '/account-recovery': typeof authAccountRecoveryPageRouteRoute+ '/account-recovery': typeof authAccountRecoveryEmailPageRouteRoute+ '/account-recovery-reset': typeof authAccountRecoveryResetPageRouteRoute'/email-not-verified': typeof authEmailNotVerifiedPageRouteRoute- '/password-reset': typeof authPasswordResetPageRouteRoute'/requestnewinvite': typeof authRequestNewInvitePageRouteRoute'/signupinvite': typeof authSignUpInvitePageRouteRoute'/personal-settings': typeof userLayoutRouteWithChildren@@ -5678,9 +5679,9 @@ export interface FileRoutesByTo {'/upgrade-path': typeof publicUpgradePathPageRouteRoute'': typeof organizationLayoutRouteWithChildren'/password-setup': typeof authPasswordSetupPageRouteRoute- '/account-recovery': typeof authAccountRecoveryPageRouteRoute+ '/account-recovery': typeof authAccountRecoveryEmailPageRouteRoute+ '/account-recovery-reset': typeof authAccountRecoveryResetPageRouteRoute'/email-not-verified': typeof authEmailNotVerifiedPageRouteRoute- '/password-reset': typeof authPasswordResetPageRouteRoute'/requestnewinvite': typeof authRequestNewInvitePageRouteRoute'/signupinvite': typeof authSignUpInvitePageRouteRoute'/personal-settings': typeof userPersonalSettingsPageRouteRoute@@ -5925,9 +5926,9 @@ export interface FileRoutesById {'/_authenticate': typeof middlewaresAuthenticateRouteWithChildren'/_restrict-login-signup': typeof middlewaresRestrictLoginSignupRouteWithChildren'/_authenticate/password-setup': typeof authPasswordSetupPageRouteRoute- '/_restrict-login-signup/account-recovery': typeof authAccountRecoveryPageRouteRoute+ '/_restrict-login-signup/account-recovery': typeof authAccountRecoveryEmailPageRouteRoute+ '/_restrict-login-signup/account-recovery-reset': typeof authAccountRecoveryResetPageRouteRoute'/_restrict-login-signup/email-not-verified': typeof authEmailNotVerifiedPageRouteRoute- '/_restrict-login-signup/password-reset': typeof authPasswordResetPageRouteRoute'/_restrict-login-signup/requestnewinvite': typeof authRequestNewInvitePageRouteRoute'/_restrict-login-signup/signupinvite': typeof authSignUpInvitePageRouteRoute'/_authenticate/_inject-org-details': typeof middlewaresInjectOrgDetailsRouteWithChildren@@ -6199,8 +6200,8 @@ export interface FileRouteTypes {| ''| '/password-setup'| '/account-recovery'+ | '/account-recovery-reset'| '/email-not-verified'- | '/password-reset'| '/requestnewinvite'| '/signupinvite'| '/personal-settings'@@ -6458,8 +6459,8 @@ export interface FileRouteTypes {| ''| '/password-setup'| '/account-recovery'+ | '/account-recovery-reset'| '/email-not-verified'- | '/password-reset'| '/requestnewinvite'| '/signupinvite'| '/personal-settings'@@ -6703,8 +6704,8 @@ export interface FileRouteTypes {| '/_restrict-login-signup'| '/_authenticate/password-setup'| '/_restrict-login-signup/account-recovery'+ | '/_restrict-login-signup/account-recovery-reset'| '/_restrict-login-signup/email-not-verified'- | '/_restrict-login-signup/password-reset'| '/_restrict-login-signup/requestnewinvite'| '/_restrict-login-signup/signupinvite'| '/_authenticate/_inject-org-details'@@ -7039,8 +7040,8 @@ export const routeTree = rootRoute"filePath": "middlewares/restrict-login-signup.tsx","children": ["/_restrict-login-signup/account-recovery",+ "/_restrict-login-signup/account-recovery-reset","/_restrict-login-signup/email-not-verified",- "/_restrict-login-signup/password-reset","/_restrict-login-signup/requestnewinvite","/_restrict-login-signup/signupinvite","/_restrict-login-signup/login",@@ -7053,15 +7054,15 @@ export const routeTree = rootRoute"parent": "/_authenticate"},"/_restrict-login-signup/account-recovery": {- "filePath": "auth/AccountRecoveryPage/route.tsx",+ "filePath": "auth/AccountRecoveryEmailPage/route.tsx","parent": "/_restrict-login-signup"},- "/_restrict-login-signup/email-not-verified": {- "filePath": "auth/EmailNotVerifiedPage/route.tsx",+ "/_restrict-login-signup/account-recovery-reset": {+ "filePath": "auth/AccountRecoveryResetPage/route.tsx","parent": "/_restrict-login-signup"},- "/_restrict-login-signup/password-reset": {- "filePath": "auth/PasswordResetPage/route.tsx",+ "/_restrict-login-signup/email-not-verified": {+ "filePath": "auth/EmailNotVerifiedPage/route.tsx","parent": "/_restrict-login-signup"},"/_restrict-login-signup/requestnewinvite": {diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex a1c16d2222..a3c3819509 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -441,10 +441,10 @@ export const routes = rootRoute("root.tsx", [route("/sso", "auth/SignUpSsoPage/route.tsx")]),route("/email-not-verified", "auth/EmailNotVerifiedPage/route.tsx"),- route("/password-reset", "auth/PasswordResetPage/route.tsx"),+ route("/account-recovery-reset", "auth/AccountRecoveryResetPage/route.tsx"),route("/requestnewinvite", "auth/RequestNewInvitePage/route.tsx"),route("/signupinvite", "auth/SignUpInvitePage/route.tsx"),- route("/account-recovery", "auth/AccountRecoveryPage/route.tsx")+ route("/account-recovery", "auth/AccountRecoveryEmailPage/route.tsx")]),middleware("authenticate.tsx", [route("/password-setup", "auth/PasswordSetupPage/route.tsx"),