Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: require redirect url to end with `.ente.io`

httpjamesme93563ce7864
diff --git a/apps/accounts/src/pages/passkeys/flow/index.tsx b/apps/accounts/src/pages/passkeys/flow/index.tsx
index 06ffee464b..d3d6edcd6d 100644
--- a/apps/accounts/src/pages/passkeys/flow/index.tsx
+++ b/apps/accounts/src/pages/passkeys/flow/index.tsx
@@ -33,7 +33,7 @@ const PasskeysFlow = () => {
const redirectURL = new URL(redirect);
if (process.env.NEXT_PUBLIC_DISABLE_REDIRECT_CHECK !== 'true') {
- if (redirect !== '' && !redirectURL.host.endsWith('ente.io')) {
+ if (redirect !== '' && !redirectURL.host.endsWith('.ente.io')) {
setInvalidInfo(true);
setLoading(false);
return;