diff --git a/lib/api/api.dart b/lib/api/api.dart index a77e1d7..4069552 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -42,6 +42,20 @@ Future loginPost(data) async { return {'statusCode': req.statusCode, 'data': req.data}; } +Future 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 resetPost(data) async { Response req = await Dio().post( ('$host/request-reset-password'),