Add submit otp api
This commit is contained in:
parent
2ff16fef32
commit
95b50c6814
1 changed files with 14 additions and 0 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue