OpenAuth.Net/OpenAuth.App/SSO/PassportLoginRequest.cs
yubao e5f911079f 4.0发布前最后一般脚本;
优化登陆;
优化流程审批;
2018-04-07 00:36:26 +08:00

30 lines
731 B
C#

using System;
namespace OpenAuth.App.SSO
{
public class PassportLoginRequest
{
public string Account { get; set; }
public string Password { get; set; }
public string AppKey { get; set; }
public void Trim()
{
if (string.IsNullOrEmpty(Account))
{
throw new Exception("用户名不能为空");
}
if (string.IsNullOrEmpty(Password))
{
throw new Exception("密码不能为空");
}
Account = Account.Trim();
Password = Password.Trim();
if(!string.IsNullOrEmpty(AppKey)) AppKey = AppKey.Trim();
}
}
}