From 5a51f391a4eff3346efa7dba22f60a8e25e779f1 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sat, 5 Nov 2005 09:20:14 +0000 Subject: [PATCH] Add UsernameNotFoundException to default exception to event mappings list. --- .../main/java/org/acegisecurity/providers/ProviderManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/org/acegisecurity/providers/ProviderManager.java b/core/src/main/java/org/acegisecurity/providers/ProviderManager.java index 9d940a513e..2abed4569d 100644 --- a/core/src/main/java/org/acegisecurity/providers/ProviderManager.java +++ b/core/src/main/java/org/acegisecurity/providers/ProviderManager.java @@ -39,6 +39,7 @@ import net.sf.acegisecurity.event.authentication.AuthenticationFailureProxyUntru import net.sf.acegisecurity.event.authentication.AuthenticationFailureServiceExceptionEvent; import net.sf.acegisecurity.event.authentication.AuthenticationSuccessEvent; import net.sf.acegisecurity.providers.cas.ProxyUntrustedException; +import net.sf.acegisecurity.providers.dao.UsernameNotFoundException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -198,6 +199,8 @@ public class ProviderManager extends AbstractAuthenticationManager AuthenticationFailureDisabledEvent.class.getName()); exceptionMappings.put(BadCredentialsException.class.getName(), AuthenticationFailureBadCredentialsEvent.class.getName()); + exceptionMappings.put(UsernameNotFoundException.class.getName(), + AuthenticationFailureBadCredentialsEvent.class.getName()); exceptionMappings.put(ConcurrentLoginException.class.getName(), AuthenticationFailureConcurrentLoginEvent.class.getName()); exceptionMappings.put(ProviderNotFoundException.class.getName(),