diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-08-15 12:35:41 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-08-15 12:35:41 -0400 |
| commit | e3c86944718d68806ad42c4d14c964a72da90b44 (patch) | |
| tree | 521f7cf81f29ac302ce5545cdc5ecde66f977182 /MediaBrowser.Server.Implementations/Session/SessionManager.cs | |
| parent | 9c5cceb4ecc277ffb5a3a988f655ad674bf41c58 (diff) | |
3.0.5340.20849
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/SessionManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Session/SessionManager.cs | 6 |
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 |
