浏览代码

fix byte string

Phallacy 6 年之前
父节点
当前提交
b56031b9f3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs

+ 2 - 1
Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs

@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.Globalization;
 using System.IO;
 using System.Linq;
+using System.Text;
 using System.Threading.Tasks;
 using MediaBrowser.Common.Extensions;
 using MediaBrowser.Controller.Authentication;
@@ -87,7 +88,7 @@ namespace Emby.Server.Implementations.Library
             {
                 byte[] bytes = new byte[4];
                 cryptoRandom.GetBytes(bytes);
-                pin = bytes.ToString();
+                pin = BitConverter.ToString(bytes);
             }
 
             DateTime expireTime = DateTime.Now.AddMinutes(30);