mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Fix: Unable to reset email settings (#6963)
This commit is contained in:
@@ -79,8 +79,6 @@ public class UIStoresEmailController(
|
||||
{
|
||||
ModelState.AddModelError("Settings.From", StringLocalizer["Invalid email"]);
|
||||
}
|
||||
if (!ModelState.IsValid)
|
||||
return View(model);
|
||||
}
|
||||
|
||||
var storeBlob = store.GetStoreBlob();
|
||||
@@ -88,6 +86,9 @@ public class UIStoresEmailController(
|
||||
if (model is { IsCustomSMTP: true, Settings: { Password: null } })
|
||||
model.Settings.Password = currentSettings?.Password;
|
||||
|
||||
if (!ModelState.IsValid && command is not ("ResetPassword" or "mailpit"))
|
||||
return View(model);
|
||||
|
||||
if (command == "Test")
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user