mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
这是有史以来最艰难的一次提交,不生则死!
This commit is contained in:
19
OpenAuth.Repository/Domain/UserExt.cs
Normal file
19
OpenAuth.Repository/Domain/UserExt.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public static class UserExt
|
||||
{
|
||||
public static void CheckPassword(this User user, string password)
|
||||
{
|
||||
if (user.Password != password)
|
||||
{
|
||||
throw new Exception("密码错误");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user