mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 04:18:27 +01:00
Move userId to post data
This commit is contained in:
parent
3538789e46
commit
79cfbb1768
@@ -657,7 +657,9 @@ namespace MediaBrowser.ApiInteraction
|
||||
string url = ApiUrl + "/UserAuthentication?userId=" + userId;
|
||||
url += "&dataformat=" + SerializationFormat.ToString();
|
||||
|
||||
HttpContent content = new StringContent("password=" + password, Encoding.UTF8, "application/x-www-form-urlencoded");
|
||||
string postContent = string.Format("userid={0}&password={1}", userId, password);
|
||||
|
||||
HttpContent content = new StringContent(postContent, Encoding.UTF8, "application/x-www-form-urlencoded");
|
||||
|
||||
HttpResponseMessage msg = await HttpClient.PostAsync(url, content).ConfigureAwait(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user