﻿namespace SFA.DAS.EmployerUsers.Web.Models
{
    public class RegisterViewModel :ViewModelBase
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public string ConfirmPassword { get; set; }
        public bool HasAcceptedTermsAndConditions { get; set; }

        public string ReturnUrl { get; set; }



        public string GeneralError => GetErrorMessage("");
        public string FirstNameError => GetErrorMessage(nameof(FirstName));
        public string LastNameError => GetErrorMessage(nameof(LastName));
        public string EmailError => GetErrorMessage(nameof(Email));
        public string PasswordError => GetErrorMessage(nameof(Password));
        public string ConfirmPasswordError => GetErrorMessage(nameof(ConfirmPassword));
        public string HasAcceptedTermsAndConditionsError => GetErrorMessage(nameof(HasAcceptedTermsAndConditions));
    }
}
﻿using System.Web.Mvc;

namespace SFA.DAS.EmployerUsers.Web.Models
{
    public class RegisterViewModel :ViewModelBase
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }

        public string Email { get; set; }
        [AllowHtml]
        public string Password { get; set; }
        [AllowHtml]
        public string ConfirmPassword { get; set; }
        public bool HasAcceptedTermsAndConditions { get; set; }

        public string ReturnUrl { get; set; }



        public string GeneralError => GetErrorMessage("");
        public string FirstNameError => GetErrorMessage(nameof(FirstName));
        public string LastNameError => GetErrorMessage(nameof(LastName));
        public string EmailError => GetErrorMessage(nameof(Email));
        public string PasswordError => GetErrorMessage(nameof(Password));
        public string ConfirmPasswordError => GetErrorMessage(nameof(ConfirmPassword));
        public string HasAcceptedTermsAndConditionsError => GetErrorMessage(nameof(HasAcceptedTermsAndConditions));
    }
}
Allow all characters for password fields
Allow all characters for password fields

Added the allow html attributes to allow all characters to be used
within the password field
