From f4d5d1695978faeccb745a25f333a6fd885d9823 Mon Sep 17 00:00:00 2001 From: amirrezaghabeli Date: Wed, 27 Aug 2025 14:50:18 +0330 Subject: [PATCH] fixed login problem --- lib/view_models/auth_view_model.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/view_models/auth_view_model.dart b/lib/view_models/auth_view_model.dart index 5614f87..02c5641 100644 --- a/lib/view_models/auth_view_model.dart +++ b/lib/view_models/auth_view_model.dart @@ -50,6 +50,8 @@ class AuthViewModel with ChangeNotifier { _errorMessage = null; notifyListeners(); + await localLogout(); + final result = await _authRepository.login( username: usernameController.text.trim(), password: passwordController.text.trim(),