添加在线用户管理,同一账号只允许一台设备登陆。
后期可限制登陆用户人数等功能
This commit is contained in:
1 parent
c67f0fb317
commit
a777e04e83
11 files changed
+192
-10
No files matched your search
@@ -3,11 +3,15 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -153,6 +157,18 @@ 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()
|
||||
//{
|
||||
|
||||
Reference in new issue
Block a user