mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-38: Get rid of unnecessary userContext initialization.
This commit is contained in:
@@ -31,11 +31,6 @@ import org.apache.guacamole.net.auth.UserContext;
|
||||
*/
|
||||
public class QuickConnectAuthenticationProvider extends AbstractAuthenticationProvider {
|
||||
|
||||
/**
|
||||
* userContext for this authentication provider.
|
||||
*/
|
||||
private UserContext userContext;
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
return "quickconnect";
|
||||
@@ -45,11 +40,8 @@ public class QuickConnectAuthenticationProvider extends AbstractAuthenticationPr
|
||||
public UserContext getUserContext(AuthenticatedUser authenticatedUser)
|
||||
throws GuacamoleException {
|
||||
|
||||
if (userContext == null)
|
||||
userContext = new QuickConnectUserContext(this,
|
||||
authenticatedUser.getIdentifier());
|
||||
|
||||
return userContext;
|
||||
return new QuickConnectUserContext(this,
|
||||
authenticatedUser.getIdentifier());
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user