Fix email sending on registration crash (#1454)

This commit is contained in:
Andrew Camilleri
2020-04-10 08:59:39 +02:00
committed by GitHub
parent 841cf61c92
commit d47e225dce
6 changed files with 12 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ namespace BTCPayServer.Controllers.GreenField
}
}
}
_eventAggregator.Publish(new UserRegisteredEvent() {Request = Request, User = user, Admin = request.IsAdministrator is true });
_eventAggregator.Publish(new UserRegisteredEvent() {RequestUri = Request.GetAbsoluteRootUri(), User = user, Admin = request.IsAdministrator is true });
return CreatedAtAction(string.Empty, user);
}