π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Upd
Manav Rathi685a3ca4c727
diff --git a/web/packages/accounts/pages/change-password.tsx b/web/packages/accounts/pages/change-password.tsxindex 7135caa3bd..9f5ff006f7 100644--- a/web/packages/accounts/pages/change-password.tsx+++ b/web/packages/accounts/pages/change-password.tsx@@ -1,5 +1,9 @@import { ensure } from "@/utils/ensure";-import { startSRPSetup, updateSRPAndKeys } from "@ente/accounts/api/srp";+import {+ getSRPAttributes,+ startSRPSetup,+ updateSRPAndKeys,+} from "@ente/accounts/api/srp";import SetPasswordForm, {type SetPasswordFormProps,} from "@ente/accounts/components/SetPasswordForm";@@ -111,6 +115,14 @@ const Page: React.FC<PageProps> = ({ appContext }) => {updatedKeyAttr: updatedKey,});+ // Update the SRP attributes that are stored locally.+ if (user?.email) {+ const srpAttributes = await getSRPAttributes(user.email);+ if (srpAttributes) {+ setData(LS_KEYS.SRP_ATTRIBUTES, srpAttributes);+ }+ }+const updatedKeyAttributes = Object.assign(keyAttributes, updatedKey);await generateAndSaveIntermediateKeyAttributes(passphrase,@@ -119,6 +131,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {);await saveKeyInSessionStore(SESSION_KEYS.ENCRYPTION_KEY, key);+redirectToAppHome();};