OpenAuth.Net/OpenAuth.WebApi/Areas/SSO/Models/PassportLoginRequest.cs
2016-07-08 11:28:38 +08:00

26 lines
610 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace OpenAuth.WebApi.Areas.SSO.Models
{
public class PassportLoginRequest
{
[DisplayName("邮箱地址")]
public string UserName { get; set; }
[Required]
[DisplayName("登录密码")]
public string Password { get; set; }
[Display(Name = "应用标识")]
public string AppKey { get; set; }
public void Trim()
{
UserName = UserName.Trim();
Password = Password.Trim();
AppKey = AppKey.Trim();
}
}
}