Includes fix for redemption failing with DbUpdateConcurrencyException: change the guest password before applying the user policy, since UpdatePolicyAsync bumps the user's EF concurrency token and a stale instance then breaks ChangePassword.
14 lignes
444 B
C#
14 lignes
444 B
C#
namespace Jellyfin.Plugin.ShareLinks.Models;
|
|
|
|
/// <summary>
|
|
/// A freshly generated share token and its persisted hash.
|
|
/// </summary>
|
|
public sealed class ShareTokenMaterial
|
|
{
|
|
/// <summary>Gets or sets the raw token returned once to the caller.</summary>
|
|
public string Token { get; set; } = string.Empty;
|
|
|
|
/// <summary>Gets or sets the HMAC hash stored durably.</summary>
|
|
public string TokenHash { get; set; } = string.Empty;
|
|
}
|