diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 01:19:03 -0400 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 01:19:03 -0400 |
| commit | ff55da9029f8b18343dbf65ca2afa643b6e0877f (patch) | |
| tree | 3b863f31ba11e44f0604b8b0bb76eb0c4fe24cb9 /MediaBrowser.WebDashboard/ApiClient.js | |
| parent | 17d01636ae8a8054dc1fc043315f4fb2f4d53187 (diff) | |
switch authentication to sha1
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/ApiClient.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index 31022de38..4081c31e2 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/ApiClient.js @@ -1061,11 +1061,8 @@ var ApiClient = { var url = ApiClient.getUrl("Users/" + userId + "/authenticate"); var postData = { + password: SHA1(password || "") }; - - if (password) { - postData.password = password; - } return $.ajax({ type: "POST", @@ -1093,9 +1090,7 @@ var ApiClient = { var postData = { }; - if (currentPassword) { - postData.currentPassword = currentPassword; - } + postData.currentPassword = SHA1(currentPassword); if (newPassword) { postData.newPassword = newPassword; } @@ -1117,7 +1112,7 @@ var ApiClient = { var postData = { }; - postData.resetPassword = 1; + postData.resetPassword = true; return $.post(url, postData); }, |
