fixed stale state after logout and replayed or lost share intents
This commit is contained in:
@@ -11,6 +11,7 @@ import '../../api/marianumconnect/auth/token_storage.dart';
|
||||
import '../../api/marianumconnect/queries/auth_login/auth_login.dart';
|
||||
import '../../api/marianumconnect/queries/auth_logout/auth_logout.dart';
|
||||
import '../../model/account_data.dart';
|
||||
import '../../model/session_wipe.dart';
|
||||
import '../../widget_data/widget_sync.dart';
|
||||
|
||||
/// Outcome of a login attempt.
|
||||
@@ -46,6 +47,10 @@ class LoginController extends ChangeNotifier {
|
||||
_errorDetails = null;
|
||||
notifyListeners();
|
||||
|
||||
// The previous account's wipe runs deferred; racing it would let it
|
||||
// clear what this login stores (widget job, caches).
|
||||
await SessionWipe.done;
|
||||
|
||||
final user = username.trim().toLowerCase();
|
||||
|
||||
// Demo login: the prefix enters local demo mode, password ignored, no
|
||||
|
||||
Reference in New Issue
Block a user