mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
调整User为SysUser、Resource为SysResource
This commit is contained in:
@@ -7,9 +7,9 @@ namespace OpenAuth.Repository.Domain
|
||||
/// </summary>
|
||||
public static class UserExt
|
||||
{
|
||||
public static void CheckPassword(this User user, string password)
|
||||
public static void CheckPassword(this SysUser sysUser, string password)
|
||||
{
|
||||
if (user.Password != password)
|
||||
if (sysUser.Password != password)
|
||||
{
|
||||
throw new Exception("密码错误");
|
||||
}
|
||||
|
Reference in New Issue
Block a user