websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs
2014-12-30 01:49:58 -08:00

26 lines
No EOL
633 B
C#

using System.ComponentModel.DataAnnotations;
namespace WebsitePanel.WebDavPortal.Models
{
public class AccountModel
{
[Required]
[Display(Name = @"Login")]
public string Login { get; set; }
[Required]
[DataType(DataType.Password)]
[Display(Name = @"Password")]
public string Password { get; set; }
public string UserName
{
get
{
return !string.IsNullOrEmpty(Login) ? Login.Split('@')[0] : string.Empty;
}
}
public string LdapError { get; set; }
}
}