|
|
@@ -1,5 +1,6 @@
|
|
|
package com.usoftchina.bi.server.service.dashboard;
|
|
|
|
|
|
+import com.usoftchina.bi.core.utils.EncryUtil;
|
|
|
import com.usoftchina.bi.server.dao.chart.ChartsConfigMapper;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.usoftchina.bi.server.model.bo.Screen;
|
|
|
@@ -52,7 +53,7 @@ public class DashboardsToChartsUtilService {
|
|
|
public RepEntity getChartsInDash(ChartsToDashInfo chartsToDashInfo, String token) throws SQLException {
|
|
|
if (StringUtils.isEmpty(token)) {
|
|
|
User user = userService.getUserById(chartsToDashInfo.getDashboardCreatorId()).getData();
|
|
|
- LoginInfo loginInfo = new LoginInfo(user.getUserName(), user.getPassWord());
|
|
|
+ LoginInfo loginInfo = new LoginInfo(user.getUserName(), EncryUtil.decryptPassword(user.getPassWord()));
|
|
|
token = userService.login(loginInfo).getData().getToken();
|
|
|
}
|
|
|
lock.lock();
|