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:
Olivier Lamy 2013-02-23 18:36:44 +00:00
parent 3029522b6e
commit 7bcf1cec6f

View File

@ -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
{ {