changePassword method

  1. @override
Future<DataResult<bool>> changePassword({
  1. required NUIAuthChangePasswordReq request,
})

Implementation

@override
Future<DataResult<bool>> changePassword({required NUIAuthChangePasswordReq request}) async{
  final resp = await _getWeb().doPOST(
      url: "user/reset-password",
      bodyEnt: request,
      entity: NUIAuthStandardRespEnt(NUIEntType.MAP, (value) => asMap(value))
  );
  return _dataResultFactory.defineDataResult<bool>(resp, successDataIfNull: true, failureData: false);
  // _processResponseMessage(result);
  // return result.body ?? NUIStandardHttpResponse(success: false, message: "NUIAuthApi => changePassword Failed");
}