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
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ public class ArchivaUserManagerAuthenticator
//throw e;
resultException = e;
authnResultErrors.add( new AuthenticationFailureCause(
AuthenticationConstants.AUTHN_MUST_CHANGE_PASSWORD_EXCEPTION, e.getMessage() ) );
AuthenticationConstants.AUTHN_MUST_CHANGE_PASSWORD_EXCEPTION, e.getMessage() ).user( user ) );
}
}
else
@ -173,7 +173,7 @@ public class ArchivaUserManagerAuthenticator
userManager.getId() );
authnResultErrors.add( new AuthenticationFailureCause( AuthenticationConstants.AUTHN_NO_SUCH_USER,
"Password is Invalid for user "
+ source.getUsername() + "." ) );
+ source.getUsername() + "." ).user( user ) );
try
{