Do not spam the logs about failed mail

This commit is contained in:
nicolas.dorier
2018-05-05 01:42:42 +09:00
parent 4458e63c1a
commit efdc99b9d1
3 changed files with 17 additions and 8 deletions

View File

@@ -243,10 +243,7 @@ namespace BTCPayServer.Controllers
{
try
{
if(string.IsNullOrWhiteSpace(model.Settings.From)
|| string.IsNullOrWhiteSpace(model.TestEmail)
|| string.IsNullOrWhiteSpace(model.Settings.Login)
|| string.IsNullOrWhiteSpace(model.Settings.Server))
if(!model.Settings.IsComplete())
{
model.StatusMessage = "Error: Required fields missing";
return View(model);