1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add optional password field on user creation

This commit is contained in:
dkanada 2019-06-30 01:52:57 -07:00
parent 24250cb4b0
commit 2609bda89d
3 changed files with 17 additions and 18 deletions

View file

@ -1190,15 +1190,13 @@ define(["events", "appStorage"], function(events, appStorage) {
data: JSON.stringify(info),
contentType: "application/json"
})
}, ApiClient.prototype.createUser = function(name) {
}, ApiClient.prototype.createUser = function(user) {
var url = this.getUrl("Users/New");
return this.ajax({
type: "POST",
url: url,
data: {
Name: name
},
dataType: "json"
data: JSON.stringify(user),
contentType: "application/json"
})
}, ApiClient.prototype.updateUser = function(user) {
if (!user) throw new Error("null user");