[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Shane Bryzak
sbryzak at redhat.com
Tue Jul 31 07:29:42 EDT 2007
User: sbryzak2
Date: 07/07/31 07:29:42
Modified: src/main/org/jboss/seam/security Identity.java
Log:
don't authenticate if we're already authenticated
Revision Changes Path
1.97 +5 -1 jboss-seam/src/main/org/jboss/seam/security/Identity.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identity.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- Identity.java 24 Jul 2007 00:31:34 -0000 1.96
+++ Identity.java 31 Jul 2007 11:29:42 -0000 1.97
@@ -318,8 +318,12 @@
public void authenticate()
throws LoginException
{
+ // If we're already authenticated, then don't authenticate again
+ if (!isLoggedIn())
+ {
authenticate( getLoginContext() );
}
+ }
public void authenticate(LoginContext loginContext)
throws LoginException
More information about the jboss-cvs-commits
mailing list