π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Swap
Manav Rathi427c560d3f93
diff --git a/web/apps/photos/src/components/AuthenticateUserModal.tsx b/web/apps/photos/src/components/AuthenticateUserModal.tsxindex 1fe92900e9..c6da8e7e4e 100644--- a/web/apps/photos/src/components/AuthenticateUserModal.tsx+++ b/web/apps/photos/src/components/AuthenticateUserModal.tsx@@ -24,17 +24,10 @@ export default function AuthenticateUserModal({onClose,onAuthenticate,}: Iprops) {- const { setDialogMessage, showMiniDialog, logout } = useContext(AppContext);+ const { showMiniDialog, onGenericError, logout } = useContext(AppContext);const [user, setUser] = useState<User>();const [keyAttributes, setKeyAttributes] = useState<KeyAttributes>();- const somethingWentWrong = () =>- setDialogMessage({- title: t("error"),- close: { variant: "critical" },- content: t("generic_error_retry"),- });-// This is a altered version of the check we do on the password verification// screen, except here it don't try to overwrite local state and instead// just request the user to login again if we detect that their password has@@ -76,9 +69,8 @@ export default function AuthenticateUserModal({setKeyAttributes(keyAttributes);}} catch (e) {- log.error("AuthenticateUserModal initialization failed", e);onClose();- somethingWentWrong();+ onGenericError(e);}};main();