瀏覽代碼

Update HistorySignOnAppInterceptor.java

MaxKey 9 月之前
父節點
當前提交
b8de11dfbc

+ 3 - 0
maxkey-webs/maxkey-web-maxkey/src/main/java/org/dromara/maxkey/web/interceptor/HistorySignOnAppInterceptor.java

@@ -17,6 +17,8 @@
 
 package org.dromara.maxkey.web.interceptor;
 
+import java.util.Date;
+
 import org.dromara.maxkey.authn.SignPrincipal;
 import org.dromara.maxkey.authn.web.AuthorizationUtils;
 import org.dromara.maxkey.entity.HistoryLoginApps;
@@ -73,6 +75,7 @@ public class HistorySignOnAppInterceptor  implements AsyncHandlerInterceptor  {
              historyLoginApps.setUsername(userInfo.getUsername());
              historyLoginApps.setDisplayName(userInfo.getDisplayName());
              historyLoginApps.setInstId(userInfo.getInstId());
+             historyLoginApps.setLoginTime(new Date());
              historyLoginAppsService.insert(historyLoginApps);
              WebContext.removeAttribute(WebConstants.CURRENT_SINGLESIGNON_URI);
              WebContext.removeAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID);