π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Minor refactor
Neeraj Guptad15d2437fbff
diff --git a/auth/lib/services/user_service.dart b/auth/lib/services/user_service.dartindex a0829cfa1e..bd411da47b 100644--- a/auth/lib/services/user_service.dart+++ b/auth/lib/services/user_service.dart@@ -271,16 +271,16 @@ class UserService {createProgressDialog(context, context.l10n.pleaseWait);await dialog.show();try {- final userPassword = Configuration.instance.getVolatilePassword();+ final userPassword = _config.getVolatilePassword();if (userPassword == null) throw Exception("volatile password is null");await _saveConfiguration(response);Widget page;- if (Configuration.instance.getEncryptedToken() != null) {- await Configuration.instance.decryptSecretsAndGetKeyEncKey(+ if (_config.getEncryptedToken() != null) {+ await _config.decryptSecretsAndGetKeyEncKey(userPassword,- Configuration.instance.getKeyAttributes()!,+ _config.getKeyAttributes()!,);page = const HomePage();} else {