Add optional password field on usercreation

This commit is contained in:
Johannes Zellner
2021-09-16 08:40:25 +02:00
parent 455fbf36e0
commit a6301d2b6c
3 changed files with 15 additions and 12 deletions

View File

@@ -1745,6 +1745,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
if (user.username !== null) data.username = user.username;
if (user.password !== null) data.password = user.password;
post('/api/v1/users', data, null, function (error, data, status) {
if (error) return callback(error);