mirror of
https://github.com/apache/archiva.git
synced 2025-03-08 01:43:06 +00:00
[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:
parent
c9a12dbf99
commit
5bc40b6181
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user