resetPasswordEmail method
Sends a password reset email.
The email
parameter specifies the user's email.
Implementation
Future<bool> resetPasswordEmail(String email) async {
try {
final dioWithOption = dio..options.headers['ignore_403'] = true;
final response = await dioWithOption.post(
'/employee/authentication/password/email',
data: {'email': email},
);
if (response.statusCode == 200) {
return true;
}
return false;
} on DioError catch (e) {
throw e.toServerException();
}
}