identificationOfCultivatedL.../OpenAuth.Repository/Domain/UserExt.cs

19 lines
342 B
C#
Raw Normal View History

2026-02-04 10:30:49 +08:00
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("密码错误");
}
}
}
}