From: Michael Jumper Date: Wed, 21 Dec 2011 08:09:51 +0000 (-0800) Subject: No need to create Map if user not valid. X-Git-Url: http://git.alex.org.uk No need to create Map if user not valid. --- diff --git a/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java b/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java index 91a6b1b..3f14763 100644 --- a/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java +++ b/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java @@ -133,11 +133,10 @@ public class BasicFileAuthenticationProvider implements AuthenticationProvider configs = new HashMap(); - // Validate and return info for given user and pass AuthInfo info = mapping.get(credentials.getUsername()); if (info != null && info.validate(credentials.getUsername(), credentials.getPassword())) { + Map configs = new HashMap(); configs.put("DEFAULT", info.getConfiguration()); return configs; }