use alternative uri validation

This commit is contained in:
Andrew Camilleri
2018-05-14 09:32:04 +02:00
parent 0ba1072d54
commit bcd79c5882
5 changed files with 48 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
using BTCPayServer.Services;
using BTCPayServer.Services.Invoices;
using BTCPayServer.Services.Rates;
using BTCPayServer.Validation;
using BTCPayServer.Validations;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
@@ -34,7 +35,7 @@ namespace BTCPayServer.Models.StoreViewModels
get; set;
}
[Url]
[Uri]
[Display(Name = "Store Website")]
[MaxLength(500)]
public string StoreWebsite