websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs
vfedosevich e4785dabca webdav portal group permission fix
added logout button
2015-01-09 04:52:51 -08:00

30 lines
No EOL
782 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WebsitePanel.Providers.HostedSolution;
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 IEnumerable<ExchangeAccount> Groups { get; set; }
public string LdapError { get; set; }
}
}