TPIN Set Screen OTP Implemented
This commit is contained in:
@@ -22,6 +22,23 @@ class ChangePasswordService {
|
||||
return response.toString();
|
||||
}
|
||||
|
||||
Future getOtpTpin({
|
||||
required String mobileNumber,
|
||||
}) async {
|
||||
final response = await _dio.post(
|
||||
'/api/otp/send',
|
||||
data: {
|
||||
'mobileNumber': mobileNumber,
|
||||
'type': "CHANGE_TPIN"
|
||||
},
|
||||
);
|
||||
if (response.statusCode != 200) {
|
||||
throw Exception("Invalid Mobile Number/Type");
|
||||
}
|
||||
print(response.toString());
|
||||
return response.toString();
|
||||
}
|
||||
|
||||
|
||||
Future validateOtp({
|
||||
required String otp,
|
||||
|
Reference in New Issue
Block a user