mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-292: Define and use standard attributes for user full name and email.
This commit is contained in:
@@ -64,6 +64,31 @@ angular.module('rest').factory('User', [function defineUser() {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* All standard attribute names with semantics defined by the Guacamole web
|
||||
* application. Extensions may additionally define their own attributes
|
||||
* with completely arbitrary names and semantics, so long as those names do
|
||||
* not conflict with the names listed here. All standard attribute names
|
||||
* have a "guac-" prefix to avoid such conflicts.
|
||||
*/
|
||||
User.Attributes = {
|
||||
|
||||
/**
|
||||
* The user's full name.
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
FULL_NAME : 'guac-full-name',
|
||||
|
||||
/**
|
||||
* The email address of the user.
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
EMAIL_ADDRESS : 'guac-email-address'
|
||||
|
||||
};
|
||||
|
||||
return User;
|
||||
|
||||
}]);
|
@@ -697,6 +697,13 @@
|
||||
|
||||
},
|
||||
|
||||
"USER_ATTRIBUTES" : {
|
||||
|
||||
"FIELD_HEADER_GUAC_EMAIL_ADDRESS" : "Email address:",
|
||||
"FIELD_HEADER_GUAC_FULL_NAME" : "Full name:"
|
||||
|
||||
},
|
||||
|
||||
"USER_MENU" : {
|
||||
|
||||
"ACTION_LOGOUT" : "@:APP.ACTION_LOGOUT",
|
||||
|
Reference in New Issue
Block a user