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 à :
Francois Coutau Bégarie
2026-09-11 14:49:55 +02:00
révisé par GitHub
Parent 988c5e2b9b
révision f57c1a1955
5 fichiers modifiés avec 70 ajouts et 7 suppressions
+1 -1
Voir le fichier
@@ -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;