aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-15 12:35:41 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-15 12:35:41 -0400
commite3c86944718d68806ad42c4d14c964a72da90b44 (patch)
tree521f7cf81f29ac302ce5545cdc5ecde66f977182 /MediaBrowser.Server.Implementations/Session/SessionManager.cs
parent9c5cceb4ecc277ffb5a3a988f655ad674bf41c58 (diff)
3.0.5340.20849
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/SessionManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
index 7db6d0191..d55d26e44 100644
--- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs
+++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs
@@ -1211,7 +1211,7 @@ namespace MediaBrowser.Server.Implementations.Session
bool isLocal)
{
var result = (isLocal && string.Equals(request.App, "Dashboard", StringComparison.OrdinalIgnoreCase)) ||
- await _userManager.AuthenticateUser(request.Username, request.Password).ConfigureAwait(false);
+ await _userManager.AuthenticateUser(request.Username, request.Password, request.RemoteEndPoint).ConfigureAwait(false);
if (!result)
{
@@ -1234,10 +1234,10 @@ namespace MediaBrowser.Server.Implementations.Session
request.RemoteEndPoint,
user)
.ConfigureAwait(false);
-
+
return new AuthenticationResult
{
- User = _dtoService.GetUserDto(user),
+ User = _userManager.GetUserDto(user, request.RemoteEndPoint),
SessionInfo = GetSessionInfoDto(session),
AccessToken = token,
ServerId = _appHost.ServerId