Skip to content

Commit

Permalink
修改cookies过期日期设置读取
Browse files Browse the repository at this point in the history
  • Loading branch information
sanluan committed Jun 27, 2019
1 parent d64d9e9 commit 20b24f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public String login(@RequestAttribute SysSite site, String username, String pass
String authToken = UUID.randomUUID().toString();
Date now = CommonUtils.getDate();
Map<String, String> config = configComponent.getConfigData(site.getId(), Config.CONFIG_CODE_SITE);
int expiryMinutes = ConfigComponent.getInt(config.get(LoginConfigComponent.CONFIG_EXPIRY_MINUTES_WEB),
int expiryMinutes = ConfigComponent.getInt(config.get(LoginConfigComponent.CONFIG_EXPIRY_MINUTES_MANAGER),
LoginConfigComponent.DEFAULT_EXPIRY_MINUTES);
sysUserTokenService.save(new SysUserToken(authToken, site.getId(), user.getId(), LogLoginService.CHANNEL_WEB_MANAGER, now,
DateUtils.addMinutes(now, expiryMinutes), ip));
Expand Down

0 comments on commit 20b24f5

Please sign in to comment.