mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Update ManageController.cs
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user