[MRM-1107] change to base exception since we will also get the MustChangePasswordException in Redback 1.2

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@752762 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-03-12 03:46:45 +00:00
parent c9a12dbf99
commit 5bc40b6181

View File

@ -32,7 +32,7 @@
import org.codehaus.plexus.redback.authentication.PasswordBasedAuthenticationDataSource;
import org.codehaus.plexus.redback.authorization.AuthorizationException;
import org.codehaus.plexus.redback.authorization.AuthorizationResult;
import org.codehaus.plexus.redback.policy.AccountLockedException;
import org.codehaus.plexus.redback.policy.PolicyViolationException;
import org.codehaus.plexus.redback.system.SecuritySession;
import org.codehaus.plexus.redback.system.SecuritySystem;
import org.codehaus.plexus.redback.users.UserNotFoundException;
@ -86,7 +86,7 @@ private SecuritySession authenticate( PasswordBasedAuthenticationDataSource auth
{
return securitySystem.authenticate( authenticationDataSource );
}
catch ( AccountLockedException e )
catch ( PolicyViolationException e )
{
throw new XmlRpcException( 401, e.getMessage(), e );
}