Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix URL (again)

Manav Rathief33065c5b74
diff --git a/web/packages/accounts/constants/pages.ts b/web/packages/accounts/constants/pages.ts
index b7658c6990..485021fd6b 100644
--- a/web/packages/accounts/constants/pages.ts
+++ b/web/packages/accounts/constants/pages.ts
@@ -10,6 +10,7 @@ export enum PAGES {
TWO_FACTOR_SETUP = "/two-factor/setup",
TWO_FACTOR_VERIFY = "/two-factor/verify",
TWO_FACTOR_RECOVER = "/two-factor/recover",
+ // PASSKEY_RECOVER = "/passkeys/recover",
VERIFY = "/verify",
SHARED_ALBUMS = "/shared-albums",
}
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 66077ee7db..04bb51a8b1 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -297,7 +297,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
onRetry={() =>
openPasskeyVerificationURL(passkeyVerificationURL)
}
- onRecover={() => router.push(PAGES.TWO_FACTOR_RECOVER)}
+ onRecover={() => router.push("/passkeys/recover")}
onLogout={logout}
/>
);
diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsx
index 2ca3dc51b7..daad935607 100644
--- a/web/packages/accounts/pages/verify.tsx
+++ b/web/packages/accounts/pages/verify.tsx
@@ -195,7 +195,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
onRetry={() =>
openPasskeyVerificationURL(passkeyVerificationURL)
}
- onRecover={() => router.push(PAGES.TWO_FACTOR_RECOVER)}
+ onRecover={() => router.push("/passkeys/recover")}
onLogout={logout}
/>
);