π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show on login
Manav Rathi9e3a3d852e19
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsxindex 44d89d5089..18d45fcb82 100644--- a/web/apps/photos/src/pages/index.tsx+++ b/web/apps/photos/src/pages/index.tsx@@ -160,7 +160,7 @@ const TappableContainer: React.FC<React.PropsWithChildren> = ({ children }) => {const [showDevSettings, setShowDevSettings] = useState(false);const handleClick: React.MouseEventHandler = (event) => {- // Don't allow this when runinng on (e.g.) web.ente.io.+ // Don't allow this when running on (e.g.) web.ente.io.if (!shouldAllowChangingAPIOrigin()) return;// Ignore clicks on buttons when counting up towards 7.diff --git a/web/packages/accounts/components/Login.tsx b/web/packages/accounts/components/Login.tsxindex 50cebd56ee..7e79d4e377 100644--- a/web/packages/accounts/components/Login.tsx+++ b/web/packages/accounts/components/Login.tsx@@ -1,4 +1,5 @@import log from "@/next/log";+import { customAPIOrigin } from "@/next/origins";import type { AppName } from "@/next/types/app";import FormPaperFooter from "@ente/shared/components/Form/FormPaper/Footer";import FormPaperTitle from "@ente/shared/components/Form/FormPaper/Title";@@ -7,7 +8,7 @@ import SingleInputForm, {type SingleInputFormProps,} from "@ente/shared/components/SingleInputForm";import { LS_KEYS, setData } from "@ente/shared/storage/localStorage";-import { Input } from "@mui/material";+import { Input, Typography, Stack } from "@mui/material";import { t } from "i18next";import { useRouter } from "next/router";import { getSRPAttributes } from "../api/srp";@@ -22,6 +23,9 @@ interface LoginProps {export function Login({ appName, signUp }: LoginProps) {const router = useRouter();+ const origin = customAPIOrigin();+ const host = origin ? new URL(origin).host : undefined;+const loginUser: SingleInputFormProps["callback"] = async (email,setFieldError,@@ -63,7 +67,14 @@ export function Login({ appName, signUp }: LoginProps) {/><FormPaperFooter>- <LinkButton onClick={signUp}>{t("NO_ACCOUNT")}</LinkButton>+ <Stack gap={4}>+ <LinkButton onClick={signUp}>{t("NO_ACCOUNT")}</LinkButton>+ {host && (+ <Typography variant="mini" color="text.faint">+ {host}+ </Typography>+ )}+ </Stack></FormPaperFooter></>);