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

@@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BTCPayServer.ModelBinders;
using BTCPayServer.Models.AppViewModels;
using BTCPayServer.Models.StoreViewModels;
using BTCPayServer.Validation;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Plugins.PayButton.Models
@@ -34,7 +35,7 @@ namespace BTCPayServer.Plugins.PayButton.Models
public string ServerIpn { get; set; }
[Url]
public string BrowserRedirect { get; set; }
[EmailAddress]
[MailboxAddress]
public string NotifyEmail { get; set; }
public string StoreId { get; set; }