Keep redemption working on Jellyfin 10.11.9 and later (#20)
Jellyfin 10.11.9 changed IUserManager.ChangePassword to take the user id instead of the User. A call compiled against either signature throws MissingMethodException on the other, so look up whichever one the server has and call it through a delegate. Bumps to 1.0.5.0.
Cette révision appartient à :
@@ -90,7 +90,7 @@ public sealed class JellyfinGuestUserService
|
||||
// policy hands the account to GuestAuthenticationProvider, which refuses every
|
||||
// interactive sign-in - but it means the account is never reachable with a blank
|
||||
// password either.
|
||||
await _userManager.ChangePassword(user, password).ConfigureAwait(false);
|
||||
await _userManager.ChangePasswordAsync(user, password).ConfigureAwait(false);
|
||||
await ApplyPolicyAsync(user, record, disabled: false).ConfigureAwait(false);
|
||||
|
||||
user = _userManager.GetUserById(user.Id) ?? user;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur