π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Consistency
vishnukvmd97b36681dc24
diff --git a/mobile/packages/accounts/lib/pages/delete_account_page.dart b/mobile/packages/accounts/lib/pages/delete_account_page.dartindex 66963914d7..f79e32cac8 100644--- a/mobile/packages/accounts/lib/pages/delete_account_page.dart+++ b/mobile/packages/accounts/lib/pages/delete_account_page.dart@@ -13,10 +13,10 @@ import 'package:ente_utils/platform_util.dart';import 'package:flutter/material.dart';class DeleteAccountPage extends StatelessWidget {- final BaseConfiguration configuration;+ final BaseConfiguration config;const DeleteAccountPage(- this.configuration, {+ this.config, {super.key,});@@ -169,9 +169,9 @@ class DeleteAccountPage extends StatelessWidget {final decryptChallenge = CryptoUtil.openSealSync(CryptoUtil.base642bin(response.encryptedChallenge),CryptoUtil.base642bin(- configuration.getKeyAttributes()!.publicKey,+ config.getKeyAttributes()!.publicKey,),- configuration.getSecretKey()!,+ config.getSecretKey()!,);final challengeResponseStr = utf8.decode(decryptChallenge);await UserService.instance.deleteAccount(context, challengeResponseStr);diff --git a/mobile/packages/accounts/lib/pages/password_reentry_page.dart b/mobile/packages/accounts/lib/pages/password_reentry_page.dartindex 7e081c9a5c..f684fc1379 100644--- a/mobile/packages/accounts/lib/pages/password_reentry_page.dart+++ b/mobile/packages/accounts/lib/pages/password_reentry_page.dart@@ -15,10 +15,14 @@ import 'package:flutter/material.dart';import 'package:logging/logging.dart';class PasswordReentryPage extends StatefulWidget {- final BaseHomePage homePage;final BaseConfiguration config;+ final BaseHomePage homePage;- const PasswordReentryPage(this.homePage, this.config, {super.key});+ const PasswordReentryPage(+ this.config,+ this.homePage, {+ super.key,+ });@overrideState<PasswordReentryPage> createState() => _PasswordReentryPageState();@@ -122,7 +126,10 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context) {- return RecoveryPage(widget.homePage, widget.config);+ return RecoveryPage(+ widget.config,+ widget.homePage,+ );},),);@@ -272,8 +279,8 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {MaterialPageRoute(builder: (BuildContext context) {return RecoveryPage(- widget.homePage,widget.config,+ widget.homePage,);},),diff --git a/mobile/packages/accounts/lib/pages/recovery_page.dart b/mobile/packages/accounts/lib/pages/recovery_page.dartindex cc889bc34c..93d22991bf 100644--- a/mobile/packages/accounts/lib/pages/recovery_page.dart+++ b/mobile/packages/accounts/lib/pages/recovery_page.dart@@ -8,10 +8,10 @@ import 'package:ente_ui/utils/toast_util.dart';import 'package:flutter/material.dart';class RecoveryPage extends StatefulWidget {- final BaseHomePage homePage;final BaseConfiguration config;+ final BaseHomePage homePage;- const RecoveryPage(this.homePage, this.config, {super.key});+ const RecoveryPage(this.config, this.homePage, {super.key});@overrideState<RecoveryPage> createState() => _RecoveryPageState();diff --git a/mobile/packages/accounts/lib/services/user_service.dart b/mobile/packages/accounts/lib/services/user_service.dartindex f127fe50be..7bc0a54c64 100644--- a/mobile/packages/accounts/lib/services/user_service.dart+++ b/mobile/packages/accounts/lib/services/user_service.dart@@ -348,7 +348,10 @@ class UserService {Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (BuildContext context) {- return PasswordReentryPage(_homePage, _config);+ return PasswordReentryPage(+ _config,+ _homePage,+ );},),(route) => route.isFirst,@@ -426,9 +429,15 @@ class UserService {await _saveConfiguration(response);if (_config.getEncryptedToken() != null) {if (isResettingPasswordScreen) {- page = RecoveryPage(_homePage, _config);+ page = RecoveryPage(+ _config,+ _homePage,+ );} else {- page = PasswordReentryPage(_homePage, _config);+ page = PasswordReentryPage(+ _config,+ _homePage,+ );}} else {page = PasswordEntryPage(@@ -837,7 +846,10 @@ class UserService {Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (BuildContext context) {- return PasswordReentryPage(_homePage, _config);+ return PasswordReentryPage(+ _config,+ _homePage,+ );},),(route) => route.isFirst,@@ -1001,7 +1013,10 @@ class UserService {Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (BuildContext context) {- return PasswordReentryPage(_homePage, _config);+ return PasswordReentryPage(+ _config,+ _homePage,+ );},),(route) => route.isFirst,