﻿namespace SFA.DAS.EmployerUsers.Web.Models
{
    public class LoginViewModel
    {
        public string EmailAddress { get; set; }
        public string Password { get; set; }
        public string OriginatingAddress { get; set; }

        public bool InvalidLoginAttempt { get; set; }
        public string ReturnUrl { get; set; }
    }
}
﻿namespace SFA.DAS.EmployerUsers.Web.Models
{
    public class LoginViewModel : ViewModelBase
    {
        public string EmailAddress { get; set; }
        public string Password { get; set; }
        public string OriginatingAddress { get; set; }
        
        public string ReturnUrl { get; set; }
        public string PasswordError => GetErrorMessage(nameof(Password));
        public string EmailAddressError => GetErrorMessage(nameof(EmailAddress));
    }
}
Add error messages to model
Add error messages to model

Implemented the ViewModelBase and added the Error Messags for the email
address and password.
