Merge pull request #26 from SyncrowIOT/forgot_pass

forget password added
This commit is contained in:
mohammadnemer1
2024-06-25 15:53:16 +03:00
committed by GitHub
10 changed files with 453 additions and 20 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;
}
}