Allow to specify token scopes
This commit is contained in:
@@ -1680,9 +1680,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.createToken = function (name, callback) {
|
||||
Client.prototype.createToken = function (name, scope, callback) {
|
||||
var data = {
|
||||
name: name
|
||||
name: name,
|
||||
scope: scope
|
||||
};
|
||||
|
||||
post('/api/v1/tokens', data, null, function (error, data, status) {
|
||||
|
||||
Reference in New Issue
Block a user