Change Password Implemented

This commit is contained in:
2025-09-09 16:03:34 +05:30
parent b3fb387bdd
commit c322d1d2fd
7 changed files with 110 additions and 35 deletions

View File

@@ -71,7 +71,7 @@ class BeneficiaryService {
return response.data['name'];
}
// Send Data for Validation
// Beneficiary Validate And ADD
Future<bool> sendForValidation(Beneficiary beneficiary) async {
try {
final response = await _dio.post(

View File

@@ -10,7 +10,7 @@ class ChangePasswordService {
}) async {
final response = await _dio.post(
'/api/otp/send',
queryParameters: {
data: {
'mobileNumber': mobileNumber,
'type': "CHANGE_LPWORD"
},
@@ -18,6 +18,7 @@ class ChangePasswordService {
if (response.statusCode != 200) {
throw Exception("Invalid Mobile Number/Type");
}
print(response.toString());
return response.toString();
}
@@ -28,7 +29,7 @@ class ChangePasswordService {
}) async {
final response = await _dio.post(
'/api/otp/verify?mobileNumber=$mobileNumber',
queryParameters: {
data: {
'otp' : otp,
},
);
@@ -45,7 +46,7 @@ class ChangePasswordService {
}) async {
final response = await _dio.post(
'/api/auth/change/login_password',
queryParameters: {
data: {
'OldLPsw': OldLPsw,
'newLPsw': newLPsw,
'confirmLPsw': confirmLPsw,