Use Safe.Raw and Safe.Json instead of Html.Raw and the JsonHelper, move sanitization at the View level (#960)

This commit is contained in:
Nicolas Dorier
2019-08-10 14:05:11 +09:00
committed by GitHub
parent 6b355cbe1b
commit be5597085b
32 changed files with 132 additions and 82 deletions

View File

@@ -4,6 +4,7 @@ using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace BTCPayServer.Models.ManageViewModels
{
@@ -15,9 +16,10 @@ namespace BTCPayServer.Models.ManageViewModels
[Display(Name = "Verification Code")]
public string Code { get; set; }
[ReadOnly(true)]
[BindNever]
public string SharedKey { get; set; }
[BindNever]
public string AuthenticatorUri { get; set; }
}
}