diff --git a/api/app/lib/controllers/auth/index.js b/api/app/lib/controllers/auth/index.js index a03c824..85a6ab1 100644 --- a/api/app/lib/controllers/auth/index.js +++ b/api/app/lib/controllers/auth/index.js @@ -61,7 +61,8 @@ async function login(ctx, next) { authorized: true, token: token, userResources: userRes ? userRes.userResources.map(r => r.resourceId) : [], - type: deptInfo ? deptInfo.type : '' + type: deptInfo ? deptInfo.type : '', + deptName: deptInfo ? deptInfo.name : '', }); await models.UserToken.create({ token: token,