mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
增加登陆逻辑,如果开启,只需要去掉basecontroller中的注释就行
This commit is contained in:
22
OpenAuth.Domain/Core/User.cs
Normal file
22
OpenAuth.Domain/Core/User.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public partial class User
|
||||
{
|
||||
public void CheckPassword(string password)
|
||||
{
|
||||
if (Password != password)
|
||||
{
|
||||
throw new Exception("密码错误");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user