Fix: Spurious EF error on CallbackGenerator

This commit is contained in:
Nicolas Dorier
2025-11-14 22:19:09 +09:00
parent 01f478e680
commit c9dcd4f0a4
10 changed files with 85 additions and 110 deletions

View File

@@ -219,7 +219,7 @@ namespace BTCPayServer.Controllers
throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
}
var callbackUrl = await _callbackGenerator.ForEmailConfirmation(user, Request);
var callbackUrl = await _callbackGenerator.ForEmailConfirmation(user);
_eventAggregator.Publish(new UserEvent.ConfirmationEmailRequested(user, callbackUrl));
TempData[WellKnownTempData.SuccessMessage] = StringLocalizer["Verification email sent. Please check your email."].Value;
return RedirectToAction(nameof(Index));