mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
No need to create Map if user not valid.
This commit is contained in:
@@ -133,11 +133,10 @@ public class BasicFileAuthenticationProvider implements AuthenticationProvider<U
|
||||
if (mapping == null)
|
||||
throw new GuacamoleException("User mapping could not be read.");
|
||||
|
||||
Map<String, GuacamoleConfiguration> configs = new HashMap<String, GuacamoleConfiguration>();
|
||||
|
||||
// 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<String, GuacamoleConfiguration> configs = new HashMap<String, GuacamoleConfiguration>();
|
||||
configs.put("DEFAULT", info.getConfiguration());
|
||||
return configs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user