aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2025-10-05 19:24:12 +0200
committerGitHub <noreply@github.com>2025-10-05 11:24:12 -0600
commitd3d5915f31ba3901f10777c519b9fe01e5b60dca (patch)
tree3549d0ecd293d6354e4474f9f7fc22c16eeb0d2b /Jellyfin.Server.Implementations
parent288640a5d0f8335f6c4093de9bc84acd4d5824db (diff)
Truncate password reset file on open for writing (#14948)
Diffstat (limited to 'Jellyfin.Server.Implementations')
-rw-r--r--Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs
index 6296881a9..f20fb2d92 100644
--- a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs
+++ b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs
@@ -108,7 +108,7 @@ namespace Jellyfin.Server.Implementations.Users
UserName = user.Username
};
- FileStream fileStream = AsyncFile.OpenWrite(filePath);
+ FileStream fileStream = AsyncFile.Create(filePath);
await using (fileStream.ConfigureAwait(false))
{
await JsonSerializer.SerializeAsync(fileStream, spr).ConfigureAwait(false);