YADESK-636 reset OATH sets correct hasKey property

This commit is contained in:
Adam Velebil 2022-04-07 15:44:46 +02:00
parent 68b47bd1c7
commit 028ee31ac5
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -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');