forget password added

This commit is contained in:
mohammad
2024-06-25 10:54:42 +03:00
parent bc3cd66096
commit 08d3ff3e0f
9 changed files with 445 additions and 4 deletions

View File

@ -40,4 +40,14 @@ class AuthenticationAPI {
expectedResponseModel: (json) => json['data']);
return response;
}
static Future<Map<String, dynamic>> forgetPassword({required String email,required String password ,}) async {
Map<String, dynamic> params = {"email": email, "password": password,};
final response = await HTTPService().post(
path: ApiEndpoints.forgetPassword,
body: params,
showServerMessage: false,
expectedResponseModel: (json) => json['data']);
return response;
}
}