diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-15 17:52:59 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-15 17:52:59 -0500 |
| commit | c47b602499ee642258526526e748e12b096d449b (patch) | |
| tree | dba22b9505dbcad03aa0e236f47f07a9803ad7ce /Emby.Server.Implementations/Connect/ConnectManager.cs | |
| parent | 6e42398f9ece91358fc52a822e07e6bc9a0e0640 (diff) | |
handle users logging in locally with Emby Connect
Diffstat (limited to 'Emby.Server.Implementations/Connect/ConnectManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Connect/ConnectManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Connect/ConnectManager.cs b/Emby.Server.Implementations/Connect/ConnectManager.cs index 23fafed15..7e6755f6a 100644 --- a/Emby.Server.Implementations/Connect/ConnectManager.cs +++ b/Emby.Server.Implementations/Connect/ConnectManager.cs @@ -1122,7 +1122,7 @@ namespace Emby.Server.Implementations.Connect } } - public async Task Authenticate(string username, string passwordMd5) + public async Task<ConnectAuthenticationResult> Authenticate(string username, string passwordMd5) { if (string.IsNullOrWhiteSpace(username)) { @@ -1151,6 +1151,7 @@ namespace Emby.Server.Implementations.Connect // No need to examine the response using (var response = (await _httpClient.SendAsync(options, "POST").ConfigureAwait(false)).Content) { + return _json.DeserializeFromStream<ConnectAuthenticationResult>(response); } } |
