mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Should return null if user is not valid.
This commit is contained in:
@@ -137,10 +137,13 @@ public class BasicFileAuthenticationProvider implements AuthenticationProvider<U
|
||||
|
||||
// Validate and return info for given user and pass
|
||||
AuthInfo info = mapping.get(credentials.getUsername());
|
||||
if (info != null && info.validate(credentials.getUsername(), credentials.getPassword()))
|
||||
if (info != null && info.validate(credentials.getUsername(), credentials.getPassword())) {
|
||||
configs.put("DEFAULT", info.getConfiguration());
|
||||
return configs;
|
||||
}
|
||||
|
||||
return configs;
|
||||
// Unauthorized
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user