Browse Source

neon: Delete app password when logging out

pull/290/head
jld3103 2 years ago
parent
commit
36345a12a0
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 9
      packages/neon/neon/lib/src/blocs/accounts.dart

9
packages/neon/neon/lib/src/blocs/accounts.dart

@ -97,6 +97,15 @@ class AccountsBloc extends Bloc implements AccountsBlocEvents, AccountsBlocState
if (aa != null && aa.id == account.id) { if (aa != null && aa.id == account.id) {
setActiveAccount(as.isNotEmpty ? as[0] : null); setActiveAccount(as.isNotEmpty ? as[0] : null);
} }
unawaited(() async {
try {
await account.client.core.deleteAppPassword();
} catch (e, s) {
debugPrint(e.toString());
debugPrint(s.toString());
}
}());
} }
@override @override

Loading…
Cancel
Save