OpenAuth.Net/OpenAuth.Repository/Domain/UserExt.cs

19 lines
339 B
C#
Raw Normal View History

2017-01-12 19:16:37 +08:00
using System;
2017-11-29 20:49:14 +08:00
namespace OpenAuth.Repository.Domain
2017-01-12 19:16:37 +08:00
{
/// <summary>
/// 用户ID
/// </summary>
public static class UserExt
{
public static void CheckPassword(this User user, string password)
{
if (user.Password != password)
{
throw new Exception("密码错误");
}
}
}
}