Live Testing #1
This commit is contained in:
@@ -64,6 +64,10 @@ class BeneficiaryService {
|
|||||||
'ifscCode': ifscCode,
|
'ifscCode': ifscCode,
|
||||||
'remitterName': remitterName,
|
'remitterName': remitterName,
|
||||||
},
|
},
|
||||||
|
options: Options(
|
||||||
|
sendTimeout: const Duration(seconds: 60),
|
||||||
|
receiveTimeout: const Duration(seconds: 60),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (response.statusCode != 200) {
|
if (response.statusCode != 200) {
|
||||||
throw Exception("Invalid Beneficiary Details");
|
throw Exception("Invalid Beneficiary Details");
|
||||||
|
|||||||
@@ -65,10 +65,11 @@ Dio _createDioClient() {
|
|||||||
final dio = Dio(
|
final dio = Dio(
|
||||||
BaseOptions(
|
BaseOptions(
|
||||||
baseUrl:
|
baseUrl:
|
||||||
//'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080',
|
//'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080', //test
|
||||||
'http://lb-kccb-mobile-banking-app-848675342.ap-south-1.elb.amazonaws.com',
|
'http://lb-kccb-mobile-banking-app-848675342.ap-south-1.elb.amazonaws.com', //prod
|
||||||
connectTimeout: const Duration(seconds: 5),
|
|
||||||
receiveTimeout: const Duration(seconds: 10),
|
connectTimeout: const Duration(seconds: 60),
|
||||||
|
receiveTimeout: const Duration(seconds: 60),
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import 'package:kmobile/api/services/auth_service.dart';
|
|||||||
import 'package:kmobile/di/injection.dart';
|
import 'package:kmobile/di/injection.dart';
|
||||||
import 'package:kmobile/features/auth/screens/login_screen.dart';
|
import 'package:kmobile/features/auth/screens/login_screen.dart';
|
||||||
|
|
||||||
|
import '../../../l10n/app_localizations.dart';
|
||||||
|
|
||||||
class SetPasswordScreen extends StatefulWidget {
|
class SetPasswordScreen extends StatefulWidget {
|
||||||
final String customerNo;
|
final String customerNo;
|
||||||
const SetPasswordScreen({super.key, required this.customerNo});
|
const SetPasswordScreen({super.key, required this.customerNo});
|
||||||
@@ -75,7 +77,7 @@ class _SetPasswordScreenState extends State<SetPasswordScreen> {
|
|||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_error = e.toString();
|
_error = AppLocalizations.of(context).invalidOtp;
|
||||||
_isLoading = false;
|
_isLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -138,7 +140,9 @@ class _SetPasswordScreenState extends State<SetPasswordScreen> {
|
|||||||
if (_error != null) ...[
|
if (_error != null) ...[
|
||||||
Text(
|
Text(
|
||||||
_error!,
|
_error!,
|
||||||
style: const TextStyle(color: Colors.red),
|
style: const TextStyle(color: Colors.red,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 20),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class TpinSetupPromptScreen extends StatefulWidget {
|
|||||||
mobileNumberToPass = authState.users[selectedAccountIndex].mobileNo ?? '';
|
mobileNumberToPass = authState.users[selectedAccountIndex].mobileNo ?? '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await _changePasswordService.getOtp(mobileNumber: mobileNumberToPass);
|
await _changePasswordService.getOtpTpin(mobileNumber: mobileNumberToPass);
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
Navigator.pushReplacement(
|
Navigator.pushReplacement(
|
||||||
context,
|
context,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class _ChangePasswordOTPScreenState extends State<ChangePasswordOTPScreen> {
|
|||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(content: Text('${AppLocalizations.of(context).failedToValidate}: $e')),
|
SnackBar(content: Text(AppLocalizations.of(context).invalidOtp)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ void main() async {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Check for device compromise
|
// Check for device compromise
|
||||||
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
// final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
||||||
if (compromisedMessage != null) {
|
// if (compromisedMessage != null) {
|
||||||
runApp(MaterialApp(
|
// runApp(MaterialApp(
|
||||||
home: SecurityErrorScreen(message: compromisedMessage),
|
// home: SecurityErrorScreen(message: compromisedMessage),
|
||||||
));
|
// ));
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Initialize dependencies
|
// Initialize dependencies
|
||||||
await setupDependencies();
|
await setupDependencies();
|
||||||
|
|||||||
Reference in New Issue
Block a user