|
|
|
|
@ -416,6 +416,7 @@ namespace ATS.NonCustodial.Application.Impl.Admins
|
|
|
|
|
new Claim(ClaimAttributes.phone,user?.Phone??""), |
|
|
|
|
new Claim(ClaimAttributes.logtime,timeLogin), |
|
|
|
|
new Claim(ClaimAttributes.limits,limits), |
|
|
|
|
new Claim(ClaimAttributes.IsAdmin,user.IsAdmin?"true":"false"), |
|
|
|
|
new Claim(ClaimAttributes.personType,user?.ChatPersonType.ToString()!) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
@ -484,6 +485,7 @@ namespace ATS.NonCustodial.Application.Impl.Admins
|
|
|
|
|
await _appUserRepository.UpdateAsync(user); |
|
|
|
|
} |
|
|
|
|
var authLoginOutput = Mapper.Map<AuthLoginOutput>(user); |
|
|
|
|
authLoginOutput.IsAdmin = isAdmin.IsAdmin; |
|
|
|
|
|
|
|
|
|
var token = await GetToken(authLoginOutput); |
|
|
|
|
|
|
|
|
|
|