Change user creation api to require the invite flag

This commit is contained in:
Johannes Zellner
2016-01-18 16:53:51 +01:00
parent 643e490cbb
commit 44e4f53827
4 changed files with 26 additions and 9 deletions

View File

@@ -544,7 +544,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
var data = {
username: username,
email: email,
invite: sendInvite
invite: !!sendInvite
};
$http.post(client.apiOrigin + '/api/v1/users', data).success(function(data, status) {