mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-10 15:48:01 +08:00
19 lines
328 B
C#
19 lines
328 B
C#
![]() |
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("密码错误");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|