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

fixes #408 - Apostrophes in profile names are bad.

This commit is contained in:
Luke Pulverenti 2013-07-26 15:19:25 -04:00
parent 1c1733b5e6
commit 979deb4ccb
2 changed files with 4 additions and 3 deletions

View file

@ -1898,10 +1898,11 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
throw new Error("null name");
}
var url = self.getUrl("Users/" + name + "/authenticatebyname");
var url = self.getUrl("Users/authenticatebyname");
var postData = {
password: MediaBrowser.SHA1(password || "")
password: MediaBrowser.SHA1(password || ""),
Username: name
};
return self.ajax({