Commit 0602c01a by 泽锋 李

优化登陆

parent 33e00dd5
...@@ -32,7 +32,7 @@ namespace AutoTurnOver.Models ...@@ -32,7 +32,7 @@ namespace AutoTurnOver.Models
public bool AllCompany { get; set; } public bool AllCompany { get; set; }
public List<tokenRole> roles { get; set; } public List<tokenRole> roles { get; set; }
public CompanyInfo Company { get; set; } public CompanyInfo Company { get; set; }
public DepartmentInfo Department { get; set; } //public DepartmentInfo Department { get; set; }
public bool has_admin { get; set; } public bool has_admin { get; set; }
} }
public class tokenRole public class tokenRole
......
...@@ -26,7 +26,7 @@ namespace AutoTurnOver.Common ...@@ -26,7 +26,7 @@ namespace AutoTurnOver.Common
return new UserData { return new UserData {
UserName = saasUser.Account, UserName = saasUser.Account,
UserAccount = saasUser.Account, UserAccount = saasUser.Account,
DepartmentName = saasUser.Department==null?"":saasUser.Department.Name DepartmentName = ""//saasUser.Department==null?"":saasUser.Department.Name
}; };
//Microsoft.AspNetCore.Http.HttpContext current = HttpContext.Current; //Microsoft.AspNetCore.Http.HttpContext current = HttpContext.Current;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment