GUAC-340: Add support for "username" parameter type.

This commit is contained in:
Michael Jumper
2014-11-23 12:57:19 -08:00
parent 02189e3d7c
commit 534f4f45c1
8 changed files with 37 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;