OpenAuth.Net/OpenAuth.Domain/User.cs

26 lines
724 B
C#
Raw Normal View History

using System;
namespace OpenAuth.Domain
{
public partial class User
{
public string UserId { get; set; }
public string Account { get; set; }
public string Password { get; set; }
public string RealName { get; set; }
public string RoleId { get; set; }
public bool Enabled { get; set; }
public bool DeleteMark { get; set; }
public void CheckLogin(string password)
{
if(this.Password != password)
throw new Exception("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
if(!this.Enabled)
throw new Exception("<22>û<EFBFBD><C3BB>Ѿ<EFBFBD><D1BE><EFBFBD>ͣ<EFBFBD><CDA3>");
if (DeleteMark)
throw new Exception("<22><><EFBFBD>˺<EFBFBD><CBBA>Ѿ<EFBFBD><D1BE><EFBFBD>ɾ<EFBFBD><C9BE>");
}
}
}