Browse Source

Fixed exception if html is passed in public key field on registration

pull/50/head 2.0.6
Teknikode 6 years ago
parent
commit
5a910ebbcb
  1. 3
      Teknik/Areas/User/ViewModels/RegisterViewModel.cs

3
Teknik/Areas/User/ViewModels/RegisterViewModel.cs

@ -4,6 +4,7 @@ using Teknik.Areas.Users.Models; @@ -4,6 +4,7 @@ using Teknik.Areas.Users.Models;
using Teknik.Utilities;
using Teknik.Models;
using Teknik.ViewModels;
using System.Web.Mvc;
namespace Teknik.Areas.Users.ViewModels
{
@ -24,8 +25,10 @@ namespace Teknik.Areas.Users.ViewModels @@ -24,8 +25,10 @@ namespace Teknik.Areas.Users.ViewModels
public string ConfirmPassword { get; set; }
[Display(Name = "Recovery Email")]
[DataType(DataType.EmailAddress)]
public string RecoveryEmail { get; set; }
[AllowHtml]
[Display(Name = "Public PGP Key")]
public string PublicKey { get; set; }

Loading…
Cancel
Save