Receive the resetToken in the webadmin

This commit is contained in:
Johannes Zellner
2016-04-04 18:15:24 +02:00
parent fcfd1dceac
commit 8f2b0bae5e
2 changed files with 4 additions and 2 deletions

View File

@@ -474,7 +474,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
Client.prototype.sendInvite = function (username, callback) {
$http.post(client.apiOrigin + '/api/v1/users/' + username + '/invite', {}).success(function (data, status) {
if (status !== 200) return callback(new ClientError(status, data));
callback(null);
callback(null, data.resetToken);
}).error(defaultErrorHandler(callback));
};