forgotPassword method

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

Implementation

@override
Future<DataResult<bool>> forgotPassword({required NUIAuthForgotPasswordReq request}) async{
  final resp = await _getWeb().doPOST(
      url: "user/forgot-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 => forgotPassword Failed");
}