用户在线管理,一个账号只准在一台设备上登陆,其他设备登陆后,此设备自动退出。

This commit is contained in:
zhougf committed 2024-07-08 15:58:37 +08:00
1 parent 12e16e0c6c
commit 209e88a905
9 files changed
+182 -15

No files matched your search

+13
View File
@@ -4,6 +4,8 @@ using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;
using HHWMS.Web.Support;
using HHWMS.Web.ViewModels.HomeVMs;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
@@ -153,6 +155,17 @@ namespace HHWMS.Web.Controllers
return JsonMore("No Data");
}
[Public]
public IActionResult CheckLogin()
{
return Ok();
}
[Public]
public IActionResult BeforeLogin(LoginVM vm)
{
return JsonMore(UserSessionManager.AllSignined().ToList());
}
//[AllowAnonymous]
//public github GetGithubInfo()
//{