diff --git a/ApiClient.js b/ApiClient.js index 7a2fae3e93..64c2667753 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -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({ diff --git a/packages.config b/packages.config index ab301bbe11..d09994b2a8 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file