Browse Source

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

tags/2.0.6^0
Teknikode 3 years ago
parent
commit
5a910ebbcb
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Teknik/Areas/User/ViewModels/RegisterViewModel.cs

+ 3
- 0
Teknik/Areas/User/ViewModels/RegisterViewModel.cs View File

@@ -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
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