π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Manav Rathia1a480f35e2f
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsxindex 34cfadc3d5..6706825697 100644--- a/web/packages/accounts/pages/credentials.tsx+++ b/web/packages/accounts/pages/credentials.tsx@@ -23,10 +23,10 @@ import {import { checkSessionValidity } from "ente-accounts/services/session";import type { SRPAttributes } from "ente-accounts/services/srp";import {- configureSRP,generateSRPSetupAttributes,getSRPAttributes,loginViaSRP,+ setupSRP,} from "ente-accounts/services/srp";import {generateAndSaveInteractiveKeyAttributes,@@ -271,7 +271,7 @@ const Page: React.FC = () => {}log.debug(() => `userSRPSetupPending ${!srpAttributes}`);if (!srpAttributes) {- await configureSRP(await generateSRPSetupAttributes(kek));+ await setupSRP(await generateSRPSetupAttributes(kek));}} catch (e) {log.error("migrate to srp failed", e);diff --git a/web/packages/accounts/pages/generate.tsx b/web/packages/accounts/pages/generate.tsxindex 6ea72c51dd..ecff1d2ba6 100644--- a/web/packages/accounts/pages/generate.tsx+++ b/web/packages/accounts/pages/generate.tsx@@ -9,8 +9,8 @@ import SetPasswordForm, {} from "ente-accounts/components/SetPasswordForm";import { appHomeRoute } from "ente-accounts/services/redirect";import {- configureSRP,generateSRPSetupAttributes,+ setupSRP,} from "ente-accounts/services/srp";import type { KeyAttributes, User } from "ente-accounts/services/user";import {@@ -74,7 +74,7 @@ const Page: React.FC = () => {await generateKeysAndAttributes(passphrase);await putUserKeyAttributes(keyAttributes);- await configureSRP(await generateSRPSetupAttributes(kek));+ await setupSRP(await generateSRPSetupAttributes(kek));await generateAndSaveInteractiveKeyAttributes(passphrase,keyAttributes,diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsxindex 72dc9eb325..3841418b11 100644--- a/web/packages/accounts/pages/verify.tsx+++ b/web/packages/accounts/pages/verify.tsx@@ -17,8 +17,8 @@ import {unstashRedirect,} from "ente-accounts/services/redirect";import {- configureSRP,getSRPAttributes,+ setupSRP,unstashAndUseSRPSetupAttributes,type SRPAttributes,} from "ente-accounts/services/srp";@@ -146,7 +146,7 @@ const Page: React.FC = () => {if (originalKeyAttributes) {await putUserKeyAttributes(originalKeyAttributes);}- await unstashAndUseSRPSetupAttributes(configureSRP);+ await unstashAndUseSRPSetupAttributes(setupSRP);}// TODO(RE): Temporary safety valve before removing the// unnecessary clear (tag: Migration)diff --git a/web/packages/accounts/services/srp.ts b/web/packages/accounts/services/srp.tsindex e1a13d05c4..13e5ef7307 100644--- a/web/packages/accounts/services/srp.ts+++ b/web/packages/accounts/services/srp.ts@@ -364,7 +364,7 @@ export const unstashAndUseSRPSetupAttributes = async (** @param srpSetupAttributes SRP setup attributes.*/-export const configureSRP = async (srpSetupAttributes: SRPSetupAttributes) =>+export const setupSRP = async (srpSetupAttributes: SRPSetupAttributes) =>srpSetupOrReconfigure(srpSetupAttributes, completeSRPSetup);/**