diff --git a/src/js/client.js b/src/js/client.js index c0b2a4f1a..297290da0 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -854,10 +854,11 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }).error(defaultErrorHandler(callback)); }; - Client.prototype.createTokenByClientId = function (id, scope, expiresAt, callback) { + Client.prototype.createTokenByClientId = function (id, scope, expiresAt, name, callback) { var data = { scope: scope, - expiresAt: expiresAt + expiresAt: expiresAt, + name: name || '' }; post('/api/v1/clients/' + id + '/tokens', data).success(function(data, status) { if (status !== 201) return callback(new ClientError(status, data)); diff --git a/src/views/account.html b/src/views/account.html index 69d49ff44..720db466c 100644 --- a/src/views/account.html +++ b/src/views/account.html @@ -198,11 +198,35 @@