Explorar el Código

Update method name

Neeraj Gupta hace 2 años
padre
commit
554beb7139

+ 1 - 1
lib/core/configuration.dart

@@ -234,7 +234,7 @@ class Configuration {
     return KeyGenResult(attributes, privateAttributes, loginKey);
   }
 
-  Future<KeyAttributes> updatePassword(String password) async {
+  Future<KeyAttributes> getAttributesForNewPassword(String password) async {
     // Get master key
     final masterKey = getKey();
 

+ 1 - 3
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

+ 1 - 1
lib/ui/account/password_entry_page.dart

@@ -384,7 +384,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
     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);