mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUAC-1001: Generate a username if blank, too.
This commit is contained in:
@@ -86,7 +86,7 @@ public abstract class SimpleAuthenticationProvider
|
|||||||
tokenFilter.filterValues(config.getParameters());
|
tokenFilter.filterValues(config.getParameters());
|
||||||
|
|
||||||
// Return user context restricted to authorized configs
|
// Return user context restricted to authorized configs
|
||||||
if (username != null)
|
if (username != null && !username.isEmpty())
|
||||||
return new SimpleUserContext(username, configs);
|
return new SimpleUserContext(username, configs);
|
||||||
|
|
||||||
// If there is no associated username, let SimpleUserContext generate one
|
// If there is no associated username, let SimpleUserContext generate one
|
||||||
|
Reference in New Issue
Block a user