Reverted ChainAuthenticatonManager.java

This commit is contained in:
Clemens Rabe
2013-10-16 19:51:16 +02:00
parent 814b940998
commit c06d3e7bee

View File

@@ -240,12 +240,11 @@ public class ChainAuthenticatonManager extends AbstractAuthenticationManager
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();