Update ManageController.cs

This commit is contained in:
Andrew Camilleri
2019-03-24 16:09:36 +01:00
committed by GitHub
parent 686bc3380d
commit ea53ae8f20

View File

@@ -110,7 +110,7 @@ namespace BTCPayServer.Controllers
{ {
var setEmailResult = await _userManager.SetEmailAsync(user, model.Email); var setEmailResult = await _userManager.SetEmailAsync(user, model.Email);
if (!setEmailResult.Succeeded) if (!setEmailResult.Succeeded)
{ {
throw new ApplicationException($"Unexpected error occurred setting email for user with ID '{user.Id}'."); throw new ApplicationException($"Unexpected error occurred setting email for user with ID '{user.Id}'.");
} }
await _userManager.SetUserNameAsync(user, model.Username); await _userManager.SetUserNameAsync(user, model.Username);