You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2011/03/18 06:53:45 UTC
svn commit: r1082822 -
/wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java
Author: ivaynberg
Date: Fri Mar 18 05:53:44 2011
New Revision: 1082822
URL: http://svn.apache.org/viewvc?rev=1082822&view=rev
Log:
WICKET-3439 fixed login problem in wicket-auth-roles. session should bind itself so signedin flag is preserved.
Modified:
wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java
Modified: wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java?rev=1082822&r1=1082821&r2=1082822&view=diff
==============================================================================
--- wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java (original)
+++ wicket/trunk/wicket-auth-roles/src/main/java/org/apache/wicket/authroles/authentication/AuthenticatedWebSession.java Fri Mar 18 05:53:44 2011
@@ -62,7 +62,12 @@ public abstract class AuthenticatedWebSe
*/
public final boolean signIn(final String username, final String password)
{
- return signedIn = authenticate(username, password);
+ signedIn = authenticate(username, password);
+ if (signedIn)
+ {
+ bind();
+ }
+ return signedIn;
}
/**