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:
parent
24250cb4b0
commit
2609bda89d
3 changed files with 17 additions and 18 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue