Change Password Implemented
This commit is contained in:
@@ -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(
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user