|
@@ -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);
|