hi
i need use another way to register customer
i create plugin but when save user in database first call
bool isApproved = _customerSettings.UserRegistrationType == UserRegistrationType.Standard;
var registrationRequest = new RegistrationRequest(_workContext.CurrentCustomer, model.Email,
_customerSettings.UsernamesEnabled ? model.Username : model.Email, model.Password,
_customerSettings.DefaultPasswordFormat, _workContext.CurrentStore.Id, isApproved);
var registrationResult = await _customerManagerService.RegisterCustomer(registrationRequest);
if (registrationResult.Success)
then need call
model = await _mediator.Send(new GetRegister() {
Customer = _workContext.CurrentCustomer,
ExcludeProperties = true,
Language = _workContext.WorkingLanguage,
Store = _workContext.CurrentStore,
Model = model,
OverrideCustomCustomerAttributes = customerAttributes
});
for save all attributes
how can i use mediator i can't add web for refrenc in plugin
plz help me thx