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

add library access to new user page

This commit is contained in:
Luke Pulverenti 2014-10-29 22:06:05 -04:00
parent 06b84f98d1
commit 7884354722
5 changed files with 128 additions and 21 deletions

View file

@ -2603,20 +2603,17 @@
* Creates a user
* @param {Object} user
*/
self.createUser = function (user) {
self.createUser = function (name) {
if (!user) {
throw new Error("null user");
}
var url = self.getUrl("Users");
var url = self.getUrl("Users/New");
return self.ajax({
type: "POST",
url: url,
data: JSON.stringify(user),
dataType: "json",
contentType: "application/json"
data: {
Name: name
},
dataType: "json"
});
};