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

Resolves missing policy error on user creation

Restores the previous method of posting the Users/New request, but adds the password field as well.
This commit is contained in:
Anthony Lavado 2019-10-04 03:41:00 -04:00
parent c34ecdc9a7
commit f7d1c9fb1b

View file

@ -1195,8 +1195,12 @@ define(["events", "appStorage"], function(events, appStorage) {
return this.ajax({
type: "POST",
url: url,
data: JSON.stringify(user),
contentType: "application/json"
data: {
Name: user.Name,
Password: user.Password
},
dataType: "json"
})
}, ApiClient.prototype.updateUser = function(user) {
if (!user) throw new Error("null user");