mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Update BTCPayServer/Controllers/ManageController.cs
Co-authored-by: d11n <mail@dennisreimann.de>
This commit is contained in:
@@ -107,7 +107,7 @@ namespace BTCPayServer.Controllers
|
|||||||
{
|
{
|
||||||
if (!(await _userManager.FindByEmailAsync(model.Email) is null))
|
if (!(await _userManager.FindByEmailAsync(model.Email) is null))
|
||||||
{
|
{
|
||||||
TempData[WellKnownTempData.ErrorMessage] = "This email already exists";
|
TempData[WellKnownTempData.ErrorMessage] = "The email address is already in use with an other account.";
|
||||||
return RedirectToAction(nameof(Index));
|
return RedirectToAction(nameof(Index));
|
||||||
}
|
}
|
||||||
var setUserResult = await _userManager.SetUserNameAsync(user, model.Email);
|
var setUserResult = await _userManager.SetUserNameAsync(user, model.Email);
|
||||||
|
|||||||
Reference in New Issue
Block a user