mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Improve email settings validation and UX (#3891)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user