|
@@ -102,6 +102,7 @@ namespace TEAMModelOS.Controllers
|
|
var jwt = new JwtSecurityToken(id_token.GetString());
|
|
var jwt = new JwtSecurityToken(id_token.GetString());
|
|
var id = jwt.Payload.Sub;
|
|
var id = jwt.Payload.Sub;
|
|
jwt.Payload.TryGetValue("name", out object name);
|
|
jwt.Payload.TryGetValue("name", out object name);
|
|
|
|
+ jwt.Payload.TryGetValue("lang", out object lang);
|
|
jwt.Payload.TryGetValue("picture", out object picture);
|
|
jwt.Payload.TryGetValue("picture", out object picture);
|
|
try
|
|
try
|
|
{
|
|
{
|
|
@@ -123,6 +124,7 @@ namespace TEAMModelOS.Controllers
|
|
//创建账号并第一次登录IES5则默认赠送1G
|
|
//创建账号并第一次登录IES5则默认赠送1G
|
|
defaultSchool = null,
|
|
defaultSchool = null,
|
|
schools = new List<TmdUser.School>(),
|
|
schools = new List<TmdUser.School>(),
|
|
|
|
+ lang= lang?.ToString(),
|
|
};
|
|
};
|
|
await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Student").CreateItemAsync<TmdUser>(tmduser, new PartitionKey("Base"));
|
|
}
|
|
}
|