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
|
||||
|
||||
Reference in new issue
Block a user