diff --git a/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java b/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java index 4fed42aeb..8760b7363 100644 --- a/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java +++ b/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java @@ -243,8 +243,7 @@ public class AuthenticationService { AuthenticationSuccessEvent event = new AuthenticationSuccessEvent( userContext, authenticatedUser.getCredentials()); - boolean ok = listenerService.authenticationSucceeded(event); - if (!ok) { + if (!listenerService.authenticationSucceeded(event)) { throw new GuacamoleAuthenticationRejectedException(); } }