continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r367387 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java
Date Mon, 09 Jan 2006 20:39:39 GMT
Author: evenisse
Date: Mon Jan  9 12:39:33 2006
New Revision: 367387

URL: http://svn.apache.org/viewcvs?rev=367387&view=rev
Log:
Update to latest plexus-security api

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java?rev=367387&r1=367386&r2=367387&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/LoginAction.java
Mon Jan  9 12:39:33 2006
@@ -60,23 +60,17 @@
 
             params.put( "password", password );
 
-            User user = authenticator.authenticate( params );
+            Authentication auth = authenticator.authenticate( params );
 
             if ( rememberMe )
             {
-                Authentication auth = new DefaultAuthentication();
-
-                auth.setUser( user );
-
-                auth.setAuthenticated( true );
-
                 rememberMeServices.loginSuccess( ServletActionContext.getRequest(),
                     ServletActionContext.getResponse(), auth );
             }
 
             HttpSession session = ServletActionContext.getRequest().getSession( true );
 
-            session.setAttribute( "authentication", user );
+            session.setAttribute( "authentication", auth );
 
             return SUCCESS;
         }



Mime
View raw message