mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 02:33:44 +03:00
YADESK-636 reset OATH sets correct hasKey property
This commit is contained in:
parent
68b47bd1c7
commit
028ee31ac5
@ -41,7 +41,8 @@ class _AndroidOathStateNotifier extends OathStateNotifier {
|
||||
Future<void> reset() async {
|
||||
try {
|
||||
await _api.reset();
|
||||
setData(state.value!.copyWith(locked: false, remembered: false));
|
||||
setData(state.value!
|
||||
.copyWith(locked: false, remembered: false, hasKey: false));
|
||||
_ref.read(androidCredentialsProvider.notifier).reset();
|
||||
} catch (e) {
|
||||
_log.config('Calling reset failed with exception: $e');
|
||||
|
Loading…
Reference in New Issue
Block a user