You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using System;
|
|
|
|
namespace OpenAuth.Repository.Domain
|
|
{
|
|
/// <summary>
|
|
/// 用户ID
|
|
/// </summary>
|
|
public static class UserExt
|
|
{
|
|
public static void CheckPassword(this SysUser user, string password)
|
|
{
|
|
if (user.Password != password)
|
|
{
|
|
throw new Exception("密码错误");
|
|
}
|
|
}
|
|
|
|
}
|
|
} |