GUAC-587: Fix flipped logic within bindAuthenticationProvider().

This commit is contained in:
Michael Jumper
2015-05-11 16:19:55 -07:00
parent ab5fa56577
commit d0d492faec

View File

@@ -168,7 +168,7 @@ public class ExtensionModule extends ServletModule {
private void bindAuthenticationProvider(Class<? extends AuthenticationProvider> authenticationProvider) {
// Choose auth provider for binding if not already chosen
if (boundAuthenticationProvider != null)
if (boundAuthenticationProvider == null)
boundAuthenticationProvider = authenticationProvider;
// If an auth provider is already chosen, skip and warn