Explorar o código

Fix bug as reported by Jared Odulio on acegisecurity-developer 29 July 2005.

Ben Alex %!s(int64=20) %!d(string=hai) anos
pai
achega
2d772cbfcc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      samples/contacts/src/main/webapp/common/secure/debug.jsp

+ 1 - 1
samples/contacts/src/main/webapp/common/secure/debug.jsp

@@ -4,7 +4,7 @@
 <%@ page import="net.sf.acegisecurity.adapters.AuthByAdapter" %>
 
 <% 
-		Authentication auth = SecurityContextHolder.getAuthentication();
+		Authentication auth = SecurityContextHolder.getContext().getAuthentication();
 		if (auth != null) { %>
 			Authentication object is of type: <%= auth.getClass().getName() %><BR><BR>
 			Authentication object as a String: <%= auth.toString() %><BR><BR>