allow username to be set by admin, when username is empty

This commit is contained in:
Girish Ramakrishnan
2022-01-12 16:20:50 -08:00
parent 38211e719e
commit 7082dfd418
3 changed files with 18 additions and 1 deletions

View File

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