From 42abf9ca1b3fcd8be04a112d964f47149dbf0736 Mon Sep 17 00:00:00 2001 From: tahaalam Date: Sun, 5 Oct 2025 09:45:13 +0300 Subject: [PATCH] login bypass removed --- lib/core/api/api_client.dart | 12 ++++++------ lib/splashPage.dart | 11 +++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/core/api/api_client.dart b/lib/core/api/api_client.dart index 5925641..799942a 100644 --- a/lib/core/api/api_client.dart +++ b/lib/core/api/api_client.dart @@ -176,12 +176,12 @@ class ApiClientImp implements ApiClient { body[_appState.isAuthenticated ? 'TokenID' : 'LogInTokenID'] = _appState.appAuthToken; } - body['TokenID'] = "@dm!n"; - body['PatientID'] = 1018977; - body['PatientTypeID'] = 1; - - body['PatientOutSA'] = 0; - body['SessionID'] = "45786230487560q"; + // body['TokenID'] = "@dm!n"; + // body['PatientID'] = 1018977; + // body['PatientTypeID'] = 1; + // + // body['PatientOutSA'] = 0; + // body['SessionID'] = "45786230487560q"; } body.removeWhere((key, value) => value == null); diff --git a/lib/splashPage.dart b/lib/splashPage.dart index 117db61..ba7cefd 100644 --- a/lib/splashPage.dart +++ b/lib/splashPage.dart @@ -49,12 +49,11 @@ class _SplashScreenState extends State { Timer(Duration(seconds: 2, milliseconds: 500), () async { LocalNotification.init(onNotificationClick: (payload) {}); - // if (await Utils.getBoolFromPrefs(CacheConst.firstLaunch)) { - // Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: OnboardingScreen()))); - // } else { - // Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LandingNavigation()))); - // } - Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LabOrdersPage()))); + if (await Utils.getBoolFromPrefs(CacheConst.firstLaunch)) { + Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: OnboardingScreen()))); + } else { + Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LandingNavigation()))); + } }); var zoom = ZoomVideoSdk(); InitConfig initConfig = InitConfig(