TPIN Set Screen OTP Implemented

This commit is contained in:
2025-09-11 16:18:37 +05:30
parent 191610c9b2
commit 0f205873a9
3 changed files with 241 additions and 147 deletions

View File

@@ -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,