1. Sebastian Sdorra
  2. scm-manager

Commits

Clemens Rabe  committed c5218f1

Reverted ChainAuthenticatonManager.java

  • Participants
  • Parent commits e76adda
  • Branches default

Comments (0)

Files changed (1)

File scm-webapp/src/main/java/sonia/scm/web/security/ChainAuthenticatonManager.java

View file
             authenticator.getClass().getName(), result);
         }
 
-        // CR: Removed check on state=failed to allow next module to
-        // continue
         if ((result != null) && (result.getState() != null)
-          && result.getState().isSuccessfully())
+          && (result.getState().isSuccessfully()
+            || (result.getState() == AuthenticationState.FAILED)))
         {
-          if (result.getUser() != null)
+          if (result.getState().isSuccessfully() && (result.getUser() != null))
           {
             User user = result.getUser();