From a100b5c40ed4af12ecb64ad0a6da41b619cf7179 Mon Sep 17 00:00:00 2001 From: mohammad Date: Tue, 3 Sep 2024 09:12:01 +0300 Subject: [PATCH] login Enhancements and add search to forget password --- lib/pages/home/bloc/home_bloc.dart | 1 - lib/services/access_mang_api.dart | 9 --------- lib/services/auth_api.dart | 4 ---- lib/services/home_api.dart | 1 - 4 files changed, 15 deletions(-) diff --git a/lib/pages/home/bloc/home_bloc.dart b/lib/pages/home/bloc/home_bloc.dart index 1de54eff..79579efc 100644 --- a/lib/pages/home/bloc/home_bloc.dart +++ b/lib/pages/home/bloc/home_bloc.dart @@ -43,7 +43,6 @@ class HomeBloc extends Bloc { try { var uuid = await const FlutterSecureStorage().read(key: UserModel.userUuidKey); user = await HomeApi().fetchUserInfo(uuid); - } catch (e) { return; } diff --git a/lib/services/access_mang_api.dart b/lib/services/access_mang_api.dart index 68ea4f8d..b99b75a9 100644 --- a/lib/services/access_mang_api.dart +++ b/lib/services/access_mang_api.dart @@ -22,7 +22,6 @@ class AccessMangApi { ); return response; } catch (e) { - debugPrint('Error fetching visitor passwords: $e'); return []; } } @@ -42,7 +41,6 @@ class AccessMangApi { ); return response; } catch (e) { - debugPrint('Error fetching $e'); return []; } } @@ -123,13 +121,6 @@ class AccessMangApi { String? effectiveTime, String? invalidTime, List? devicesUuid}) async { - print('object=== ${ jsonEncode({ - "email": email, - "devicesUuid": devicesUuid, - "passwordName": passwordName, - "effectiveTime": effectiveTime, - "invalidTime": invalidTime, - })}'); final response = await HTTPService().post( path: ApiEndpoints.sendOffLineMultipleTime, body: jsonEncode({ diff --git a/lib/services/auth_api.dart b/lib/services/auth_api.dart index 844689df..a09fa7ba 100644 --- a/lib/services/auth_api.dart +++ b/lib/services/auth_api.dart @@ -26,7 +26,6 @@ class AuthenticationAPI { body: {"email": email, "password": password}, showServerMessage: true, expectedResponseModel: (json) { - print('json=$json'); }); return response; } @@ -54,15 +53,12 @@ class AuthenticationAPI { return cooldown; } } else { - debugPrint('Error: ${e.response!.statusCode} - ${e.response!.statusMessage}'); return 1; } } else { - debugPrint('Error: ${e.message}'); return 1; } } catch (e) { - debugPrint('Unexpected Error: $e'); return 1; } } diff --git a/lib/services/home_api.dart b/lib/services/home_api.dart index 000d4ff2..dfbaf4bf 100644 --- a/lib/services/home_api.dart +++ b/lib/services/home_api.dart @@ -8,7 +8,6 @@ class HomeApi { path: ApiEndpoints.getUser.replaceAll('{userUuid}', userId!), showServerMessage: true, expectedResponseModel: (json) { - print('fetchUserInfo$json'); return UserModel.fromJson(json); }); return response;