From 020e890daeb03b2941fbbaf8a4aa620b4a808213 Mon Sep 17 00:00:00 2001 From: venbaittech Date: Thu, 21 Aug 2025 14:57:52 +0530 Subject: [PATCH] APISECURITY --- lib/Screens/authentication/login/login_widget.dart | 2 +- lib/app.dart | 4 ++-- lib/services/apiService.dart | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Screens/authentication/login/login_widget.dart b/lib/Screens/authentication/login/login_widget.dart index 9b9b8b9..52d7ba1 100644 --- a/lib/Screens/authentication/login/login_widget.dart +++ b/lib/Screens/authentication/login/login_widget.dart @@ -109,7 +109,7 @@ class _LoginWidgetState extends State { _isLoading = true; }); - const String url = '$apiUrl/auth/login'; + const String url = '$apiUrl/api/auth/login'; try { final response = await http.post( diff --git a/lib/app.dart b/lib/app.dart index 1f05d7d..9d8f22d 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -34,8 +34,8 @@ class _MyAppState extends State { @override void initState() { super.initState(); - // SemanticsBinding.instance - // .ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type + SemanticsBinding.instance + .ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type if (kIsWeb) { final uri = Uri.parse(html.window.location.href); print("URI - $uri"); diff --git a/lib/services/apiService.dart b/lib/services/apiService.dart index 317ca4e..b8e8560 100644 --- a/lib/services/apiService.dart +++ b/lib/services/apiService.dart @@ -726,7 +726,7 @@ class ApiService { headers: { 'Authorization': 'Bearer $token', 'Content-Type': 'application/json', - // 'app-signature': 'ts-traveltool-2025-signature-123456', + 'app-signature': 'ts-traveltool-2025-signature-123456', }, ); @@ -764,7 +764,7 @@ class ApiService { headers: { 'Authorization': 'Bearer $token', 'Content-Type': 'application/json', - // 'app-signature': 'ts-traveltool-2025-signature-123456', + 'app-signature': 'ts-traveltool-2025-signature-123456', }, ); @@ -804,7 +804,7 @@ class ApiService { headers: { 'Authorization': 'Bearer $token', 'Content-Type': 'application/json', - // 'app-signature': 'ts-traveltool-2025-signature-123456', + 'app-signature': 'ts-traveltool-2025-signature-123456', }, ); @@ -869,7 +869,7 @@ class ApiService { headers: { 'Authorization': 'Bearer $token', 'Content-Type': 'application/json', - // 'app-signature': 'ts-traveltool-2025-signature-123456', + 'app-signature': 'ts-traveltool-2025-signature-123456', }, ); @@ -935,7 +935,7 @@ class ApiService { headers: { 'Authorization': 'Bearer $token', 'Content-Type': 'application/json', - // 'app-signature': 'ts-traveltool-2025-signature-123456', + 'app-signature': 'ts-traveltool-2025-signature-123456', }, );