aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-02-23 18:36:44 +0000
committerOlivier Lamy <olamy@apache.org>2013-02-23 18:36:44 +0000
commit7bcf1cec6f620005785349ac61a6f854b8320eae (patch)
tree74cf56dd7ded2dffd547250196b6fda85f6aba5d /archiva-modules
parent3029522b6e167b2c27eb69c337862e17d24074a1 (diff)
downloadarchiva-7bcf1cec6f620005785349ac61a6f854b8320eae.tar.gz
archiva-7bcf1cec6f620005785349ac61a6f854b8320eae.zip
add user in AuthenticationFailureCause
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449387 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
index 3badea64a..e54a503b0 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaUserManagerAuthenticator.java
@@ -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
{