Add submit otp api

This commit is contained in:
Moe Poi ~ 2022-05-23 01:05:13 +07:00
parent 2ff16fef32
commit 95b50c6814

View file

@ -42,6 +42,20 @@ Future<dynamic> loginPost(data) async {
return {'statusCode': req.statusCode, 'data': req.data};
}
Future<dynamic> otpPost(data) async {
Response req = await Dio().post(
('$host/otp-submit'),
data: data,
options: Options(
contentType: Headers.formUrlEncodedContentType,
validateStatus: (status) {
return status! < 500;
},
),
);
return {'statusCode': req.statusCode, 'data': req.data};
}
Future<dynamic> resetPost(data) async {
Response req = await Dio().post(
('$host/request-reset-password'),