mirror of
https://github.com/apache/archiva.git
synced 2025-02-08 11:06:03 +00:00
add user in AuthenticationFailureCause
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3029522b6e
commit
7bcf1cec6f
@ -164,7 +164,7 @@ public AuthenticationResult authenticate( AuthenticationDataSource ds )
|
|||||||
//throw e;
|
//throw e;
|
||||||
resultException = e;
|
resultException = e;
|
||||||
authnResultErrors.add( new AuthenticationFailureCause(
|
authnResultErrors.add( new AuthenticationFailureCause(
|
||||||
AuthenticationConstants.AUTHN_MUST_CHANGE_PASSWORD_EXCEPTION, e.getMessage() ) );
|
AuthenticationConstants.AUTHN_MUST_CHANGE_PASSWORD_EXCEPTION, e.getMessage() ).user( user ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -173,7 +173,7 @@ public AuthenticationResult authenticate( AuthenticationDataSource ds )
|
|||||||
userManager.getId() );
|
userManager.getId() );
|
||||||
authnResultErrors.add( new AuthenticationFailureCause( AuthenticationConstants.AUTHN_NO_SUCH_USER,
|
authnResultErrors.add( new AuthenticationFailureCause( AuthenticationConstants.AUTHN_NO_SUCH_USER,
|
||||||
"Password is Invalid for user "
|
"Password is Invalid for user "
|
||||||
+ source.getUsername() + "." ) );
|
+ source.getUsername() + "." ).user( user ) );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user