feat: integrate undergraduate school workflows and period twelve
This commit is contained in:
@@ -506,6 +506,25 @@ class SchoolSession extends ChangeNotifier {
|
||||
return future.whenComplete(() => _logoutFuture = null);
|
||||
}
|
||||
|
||||
void invalidateAuthentication() {
|
||||
_openSerial++;
|
||||
_pageGeneration++;
|
||||
_reader.invalidate();
|
||||
_flow.reset();
|
||||
_poll?.cancel();
|
||||
_timeout?.cancel();
|
||||
_readingActive = false;
|
||||
_routeClosed = true;
|
||||
hasOpened = false;
|
||||
pendingDraft = null;
|
||||
pendingExams = null;
|
||||
finding = false;
|
||||
_loading = false;
|
||||
connectionState = SchoolConnectionState.signedOut;
|
||||
message = '学校登录已退出';
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Future<void> _performLogout() async {
|
||||
_openSerial++;
|
||||
_pageGeneration++;
|
||||
|
||||
Reference in New Issue
Block a user