diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-05-07 14:52:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 14:52:10 +0200 |
| commit | 62da4d0e5c05ae12c57bcbbacd73e792c70ae9ae (patch) | |
| tree | f48de8012d3bc1c36378f57f649679932db4fdd0 /MediaBrowser.Controller/Library/IUserManager.cs | |
| parent | 41b667c1374794421a1f9d324ef5156609de8464 (diff) | |
| parent | 5c6339d8fd4b12237c6cb8eb9d115d59c9c27ddf (diff) | |
Merge pull request #2492 from Polpetta/fix-api-private-data-leak
Fix emby/user/public API leaking sensitive data
Diffstat (limited to 'MediaBrowser.Controller/Library/IUserManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/Library/IUserManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/IUserManager.cs b/MediaBrowser.Controller/Library/IUserManager.cs index be7b4ce59..ec6cb35eb 100644 --- a/MediaBrowser.Controller/Library/IUserManager.cs +++ b/MediaBrowser.Controller/Library/IUserManager.cs @@ -144,6 +144,14 @@ namespace MediaBrowser.Controller.Library UserDto GetUserDto(User user, string remoteEndPoint = null); /// <summary> + /// Gets the user public dto. + /// </summary> + /// <param name="user">Ther user.</param>\ + /// <param name="remoteEndPoint">The remote end point.</param> + /// <returns>A public UserDto, aka a UserDto stripped of personal data.</returns> + PublicUserDto GetPublicUserDto(User user, string remoteEndPoint = null); + + /// <summary> /// Authenticates the user. /// </summary> Task<User> AuthenticateUser(string username, string password, string passwordSha1, string remoteEndPoint, bool isUserSession); |
