Skip to content

The Free Software Media System - Server Backend & API

Merge branch 'master' into authenticationdb-efcore

Patrick Barron45f478f63e21
diff --cc MediaBrowser.Controller/Library/IUserManager.cs
index 51118e39cd,21776f8915..993e3e18f9
--- a/MediaBrowser.Controller/Library/IUserManager.cs
+++ b/MediaBrowser.Controller/Library/IUserManager.cs
@@@ -112,7 -123,10 +116,11 @@@ namespace MediaBrowser.Controller.Libra
/// <summary>
/// Changes the easy password.
/// </summary>
+ /// <param name="user">The user.</param>
+ /// <param name="newPassword">New password to use.</param>
+ /// <param name="newPasswordSha1">Hash of new password.</param>
- void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1);
++ /// <returns>Task.</returns>
+ Task ChangeEasyPassword(User user, string newPassword, string newPasswordSha1);
/// <summary>
/// Gets the user dto.
diff --cc MediaBrowser.Controller/Session/ISessionManager.cs
index 88a905166f,0ff32fb536..23b36cc10e
--- a/MediaBrowser.Controller/Session/ISessionManager.cs
+++ b/MediaBrowser.Controller/Session/ISessionManager.cs
@@@ -84,7 -83,8 +84,8 @@@ namespace MediaBrowser.Controller.Sessi
/// <param name="deviceName">Name of the device.</param>
/// <param name="remoteEndPoint">The remote end point.</param>
/// <param name="user">The user.</param>
- /// <returns>Session information.</returns>
- SessionInfo LogSessionActivity(string appName, string appVersion, string deviceId, string deviceName, string remoteEndPoint, Jellyfin.Data.Entities.User user);
++ /// <returns>A task containing the session information.</returns>
+ Task<SessionInfo> LogSessionActivity(string appName, string appVersion, string deviceId, string deviceName, string remoteEndPoint, Jellyfin.Data.Entities.User user);
/// <summary>
/// Used to report that a session controller has connected.
@@@ -335,9 -367,15 +349,10 @@@
/// <summary>
/// Revokes the user tokens.
/// </summary>
- /// <param name="userId">User ID.</param>
- /// <param name="currentAccessToken">Current access token.</param>
- void RevokeUserTokens(Guid userId, string currentAccessToken);
-
- /// <summary>
- /// Revokes the token.
- /// </summary>
- /// <param name="id">The identifier.</param>
- void RevokeToken(string id);
+ /// <param name="userId">The user's id.</param>
+ /// <param name="currentAccessToken">The current access token.</param>
++ /// <returns>Task.</returns>
+ Task RevokeUserTokens(Guid userId, string currentAccessToken);
void CloseIfNeeded(SessionInfo session);
}