Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to latest plexus-security api
git-svn-id: https://svn.apache.org/repos/asf/maven/continuum/trunk@367387 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Emmanuel Venisse committed Jan 9, 2006
1 parent 9d1e2d3 commit 5076982
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -60,23 +60,17 @@ public String execute()

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;
}
Expand Down

0 comments on commit 5076982

Please sign in to comment.