diff --git a/lib/core/configuration.dart b/lib/core/configuration.dart index ac19bae83..8909419d0 100644 --- a/lib/core/configuration.dart +++ b/lib/core/configuration.dart @@ -234,7 +234,7 @@ class Configuration { return KeyGenResult(attributes, privateAttributes, loginKey); } - Future updatePassword(String password) async { + Future getAttributesForNewPassword(String password) async { // Get master key final masterKey = getKey(); diff --git a/lib/services/user_service.dart b/lib/services/user_service.dart index de5136844..160750e6f 100644 --- a/lib/services/user_service.dart +++ b/lib/services/user_service.dart @@ -39,9 +39,7 @@ import 'package:photos/utils/dialog_util.dart'; import 'package:photos/utils/navigation_util.dart'; import 'package:photos/utils/toast_util.dart'; import "package:pointycastle/export.dart"; -import "package:pointycastle/pointycastle.dart"; import "package:pointycastle/srp/srp6_client.dart"; -// import "package:pointycastle/srp/srp6_server.dart"; import "package:pointycastle/srp/srp6_standard_groups.dart"; import "package:pointycastle/srp/srp6_util.dart"; import "package:pointycastle/srp/srp6_verifier_generator.dart"; @@ -615,7 +613,7 @@ class UserService { return page; }, ), - (route) => route.isFirst, + (route) => route.isFirst, ); } else { // should never reach here diff --git a/lib/ui/account/password_entry_page.dart b/lib/ui/account/password_entry_page.dart index 689ca96b6..4fbe9c933 100644 --- a/lib/ui/account/password_entry_page.dart +++ b/lib/ui/account/password_entry_page.dart @@ -384,7 +384,7 @@ class _PasswordEntryPageState extends State { await dialog.show(); try { final keyAttributes = await Configuration.instance - .updatePassword(_passwordController1.text); + .getAttributesForNewPassword(_passwordController1.text); await UserService.instance.updateKeyAttributes(keyAttributes); await dialog.hide(); showShortToast(context, S.of(context).passwordChangedSuccessfully);