diff --git a/lib/app/service/biometry_service.dart b/lib/app/service/biometry_service.dart index a6fd5f228..e9030ffb8 100644 --- a/lib/app/service/biometry_service.dart +++ b/lib/app/service/biometry_service.dart @@ -181,19 +181,6 @@ class BiometryService { } } - /// This method typically called after password of seed was changed. - /// If biometry enabled - update password of [publicKey] in storage - /// even if there was no password before, because if biometry enabled, we must - /// store all passwords. - Future updatePasswordIfPossible({ - required PublicKey publicKey, - required String newPassword, - }) async { - if (isEnabled) { - return setKeyPassword(publicKey: publicKey, password: newPassword); - } - } - /// Try to authenticate user with biometry or throw exception. /// Attempts count are managed by system. Future _authenticate(String localizedReason) async { diff --git a/lib/feature/profile/manage_seeds_accounts/widgets/change_seed_password/change_seed_password_model.dart b/lib/feature/profile/manage_seeds_accounts/widgets/change_seed_password/change_seed_password_model.dart index 9a6de6f76..a966c4736 100644 --- a/lib/feature/profile/manage_seeds_accounts/widgets/change_seed_password/change_seed_password_model.dart +++ b/lib/feature/profile/manage_seeds_accounts/widgets/change_seed_password/change_seed_password_model.dart @@ -38,10 +38,11 @@ class ChangeSeedPasswordModel extends ElementaryModel { newPassword: newPassword, ); - await _biometryService.updatePasswordIfPossible( + await _biometryService.setKeyPassword( publicKey: publicKey, - newPassword: newPassword, + password: newPassword, ); + await _passwordService.reset(publicKey); } Future checkKeyPassword({