From a666b5f9741ef9b21f547d3b2141752a0383c70c Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 20 九月 2022 17:07:38 +0800
Subject: [PATCH] 1、修改登录页面 2、修改阿里代码规范问题

---
 src/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/src/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java b/src/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java
index f8d496f..e6631a0 100644
--- a/src/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java
+++ b/src/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java
@@ -261,18 +261,6 @@
                 
         		return newEvent(SUCCESS_WITH_WARNINGS);
         	}
-        	// ----------闈炲崟鐢ㄦ埛鐧诲綍鏃舵樉绀烘彁閱掍俊鎭� Add by Tanbin END ------------
-        	
-            //-------- 鍗曠敤鎴风櫥褰曢檺鍒� Add by Tanbin -------
-//            String singleLoginCheckbox = (String) context.getFlowScope().get("singleLoginCheckbox");
-//            boolean kickOut = singleLoginService.singleLoginProperties.isKickOut();
-//            if (singleLoginCheckbox != null) {
-//            	kickOut = singleLoginCheckbox.equalsIgnoreCase("true");
-//            }
-//            if(kickOut) {
-//            	singleLoginService.kickOutOldLogins(tgt);
-//            }
-            //------------------------------------------
         } else {
             tgt = this.centralAuthenticationService.getTicket(ticketGrantingTicket, TicketGrantingTicket.class);
             tgt.getAuthentication().update(authentication);
@@ -288,8 +276,8 @@
             return newEvent(SUCCESS_WITH_WARNINGS);
         }
         //楠岃瘉閫氳繃缁熻鍦ㄧ嚎浜烘暟瀛樺叆map
-        if(!singleLoginService.set.contains(authenticationResult.getAuthentication().getPrincipal().toString())){
-        	 singleLoginService.set.add(authenticationResult.getAuthentication().getPrincipal().toString() );
+        if(!SingleLoginService.set.contains(authenticationResult.getAuthentication().getPrincipal().toString())){
+            SingleLoginService.set.add(authenticationResult.getAuthentication().getPrincipal().toString() );
         }
        
         
@@ -354,7 +342,7 @@
      */
     protected static Map<String, Object> buildEventAttributeMap(final Principal principal, final RegisteredService service,
                                                                 final MultifactorAuthenticationProvider provider) {
-        final Map<String, Object> map = new HashMap<>();
+        final Map<String, Object> map = new HashMap<>(5);
         map.put(Principal.class.getName(), principal);
         map.put(RegisteredService.class.getName(), service);
         map.put(MultifactorAuthenticationProvider.class.getName(), provider);

--
Gitblit v1.9.3