mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
GUAC-340: Add support for "username" parameter type.
This commit is contained in:
@@ -885,8 +885,9 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
||||
var field;
|
||||
switch (parameter.type) {
|
||||
|
||||
// Text field
|
||||
// Text or username field
|
||||
case GuacamoleService.Protocol.Parameter.TEXT:
|
||||
case GuacamoleService.Protocol.Parameter.USERNAME:
|
||||
field = new GuacAdmin.Field.TEXT();
|
||||
break;
|
||||
|
||||
|
@@ -1284,6 +1284,11 @@ GuacamoleService.Protocol.Parameter.ENUM = 4;
|
||||
*/
|
||||
GuacamoleService.Protocol.Parameter.MULTILINE = 5;
|
||||
|
||||
/**
|
||||
* A username field.
|
||||
*/
|
||||
GuacamoleService.Protocol.Parameter.USERNAME = 6;
|
||||
|
||||
/**
|
||||
* Collection of service functions which deal with protocols. Each function
|
||||
* makes an explicit HTTP query to the server, and parses the response.
|
||||
@@ -1355,6 +1360,11 @@ GuacamoleService.Protocols = {
|
||||
parameter.type = GuacamoleService.Protocol.Parameter.TEXT;
|
||||
break;
|
||||
|
||||
// Username parameter
|
||||
case "username":
|
||||
parameter.type = GuacamoleService.Protocol.Parameter.USERNAME;
|
||||
break;
|
||||
|
||||
// Password parameter
|
||||
case "password":
|
||||
parameter.type = GuacamoleService.Protocol.Parameter.PASSWORD;
|
||||
|
Reference in New Issue
Block a user