mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
@@ -111,6 +111,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)
|
||||||
{
|
{
|
||||||
|
await _userManager.SetUserNameAsync(user, model.Username);
|
||||||
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}'.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user