Fix user import

This commit is contained in:
Girish Ramakrishnan
2022-02-17 14:42:24 -08:00
parent 5e76a8ea7b
commit dd364733a4
6 changed files with 91 additions and 30 deletions

View File

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