mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 23:08:42 +01:00
Convert UpdateUser to solely async
This commit is contained in:
@@ -63,14 +63,6 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
Task RenameUser(User user, string newName);
|
||||
|
||||
/// <summary>
|
||||
/// Updates the user.
|
||||
/// </summary>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <exception cref="ArgumentNullException">user</exception>
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
void UpdateUser(User user);
|
||||
|
||||
/// <summary>
|
||||
/// Updates the user.
|
||||
/// </summary>
|
||||
@@ -108,7 +100,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <returns>Task.</returns>
|
||||
void ResetEasyPassword(User user);
|
||||
Task ResetEasyPassword(User user);
|
||||
|
||||
/// <summary>
|
||||
/// Changes the password.
|
||||
@@ -118,7 +110,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <summary>
|
||||
/// Changes the easy password.
|
||||
/// </summary>
|
||||
void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1);
|
||||
Task ChangeEasyPassword(User user, string newPassword, string newPasswordSha1);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user dto.
|
||||
@@ -155,7 +147,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <summary>
|
||||
/// This method updates the user's configuration.
|
||||
/// This is only included as a stopgap until the new API, using this internally is not recommended.
|
||||
/// Instead, modify the user object directly, then call <see cref="UpdateUser"/>.
|
||||
/// Instead, modify the user object directly, then call <see cref="UpdateUserAsync"/>.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user's Id.</param>
|
||||
/// <param name="config">The request containing the new user configuration.</param>
|
||||
@@ -165,7 +157,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <summary>
|
||||
/// This method updates the user's policy.
|
||||
/// This is only included as a stopgap until the new API, using this internally is not recommended.
|
||||
/// Instead, modify the user object directly, then call <see cref="UpdateUser"/>.
|
||||
/// Instead, modify the user object directly, then call <see cref="UpdateUserAsync"/>.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user's Id.</param>
|
||||
/// <param name="policy">The request containing the new user policy.</param>
|
||||
|
||||
Reference in New Issue
Block a user