Revert "添加在线用户管理,同一账号只允许一台设备登陆。"

This reverts commit a777e04e83.
This commit is contained in:
zhougf committed 2024-07-08 14:08:02 +08:00
1 parent a777e04e83
commit 4c99666b75
11 files changed
+10 -192

No files matched your search

@@ -15,11 +15,7 @@ namespace WalkingTec.Mvvm.Core.Extensions
public static ClaimsPrincipal CreatePrincipal(this LoginUserInfo self)
{
if (string.IsNullOrEmpty(self.ITCode)) throw new ArgumentException("Id is mandatory", nameof(self.ITCode));
var claims = new List<Claim>
{
new Claim(AuthConstants.JwtClaimTypes.Subject, self.ITCode) ,
new Claim("SessionId", Guid.NewGuid().ToString())
};
var claims = new List<Claim> { new Claim(AuthConstants.JwtClaimTypes.Subject, self.ITCode) };
if (!string.IsNullOrEmpty(self.Name))
{
@@ -12,11 +12,11 @@ namespace $namespace$
[ActionDescription("$des$")]
public partial class $modelname$Controller : BaseController
{
private readonly IUnitWork _unitWork;
private readonly IUnitWork _unitwork;
public $modelname$Controller(IUnitWork unitWork)
public $modelname$Controller(IUnitWork unitwork)
{
_unitWork = unitWork;
_unitwork = unitwork;
}
#region Search