mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
Update HistorySignOnAppInterceptor.java
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user