Commit 437a8ecbd396841d20051b10caf1ba6a6bc464ef

Authored by Dancovich
2 parents b8ee6528 afa870df
Exists in master

Merge remote-tracking branch 'origin/master'

impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/AuthenticationExceptionHandler.java
... ... @@ -43,6 +43,7 @@ import javax.faces.context.FacesContext;
43 43 import javax.servlet.http.HttpServletResponse;
44 44  
45 45 import br.gov.frameworkdemoiselle.internal.configuration.JsfSecurityConfig;
  46 +import br.gov.frameworkdemoiselle.security.InvalidCredentialsException;
46 47 import br.gov.frameworkdemoiselle.security.NotLoggedInException;
47 48 import br.gov.frameworkdemoiselle.util.Beans;
48 49  
... ... @@ -57,7 +58,7 @@ public class AuthenticationExceptionHandler extends AbstractExceptionHandler {
57 58 protected boolean handleException(final Throwable cause, FacesContext facesContext) {
58 59 boolean handled = false;
59 60  
60   - if (cause instanceof NotLoggedInException) {
  61 + if (cause instanceof NotLoggedInException || cause instanceof InvalidCredentialsException) {
61 62 handled = true;
62 63 // TODO Inter [NQ]: remover referência a SecurityObserver criando uma classe comum que faz o
63 64 // redirecionamento e que é compartilhada entre elas.
... ...