Allow to specify if a new user gets invited immediately

This commit is contained in:
Johannes Zellner
2016-01-18 16:44:11 +01:00
parent e61498c3b6
commit 643e490cbb
3 changed files with 11 additions and 4 deletions

View File

@@ -540,10 +540,11 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
}).error(defaultErrorHandler(callback));
};
Client.prototype.createUser = function (username, email, callback) {
Client.prototype.createUser = function (username, email, sendInvite, callback) {
var data = {
username: username,
email: email
email: email,
invite: sendInvite
};
$http.post(client.apiOrigin + '/api/v1/users', data).success(function(data, status) {