aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhallacy <Dragoonmac@gmail.com>2019-03-28 20:49:11 -0700
committerPhallacy <Dragoonmac@gmail.com>2019-03-28 20:49:11 -0700
commitb56031b9f3ccfd4a8ac0413657f45645fe2e0f1e (patch)
treec22ff70937682d4a33b03c188b64be63df2f6327
parent48b50a22a43dde00c795fb01521fcd731c323de7 (diff)
fix byte string
-rw-r--r--Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs b/Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs
index b726fa2d0..56540cc08 100644
--- a/Emby.Server.Implementations/Library/DefaultPasswordResetProvider.cs
+++ b/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);