mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-18 04:33:27 +08:00
26 lines
724 B
C#
26 lines
724 B
C#
![]() |
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>");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|