Improve email settings validation and UX (#3891)

This commit is contained in:
Nicolas Dorier
2022-06-23 13:41:52 +09:00
committed by GitHub
parent c2d72e71aa
commit c89f7aaaed
26 changed files with 161 additions and 93 deletions

View File

@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using BTCPayServer.Services.Mails;
using BTCPayServer.Validation;
namespace BTCPayServer.Models.ServerViewModels
{
@@ -19,7 +20,7 @@ namespace BTCPayServer.Models.ServerViewModels
get; set;
}
public bool PasswordSet { get; set; }
[EmailAddress]
[MailboxAddressAttribute]
[Display(Name = "Test Email")]
public string TestEmail
{