From 0396e0ddf35c6aba6a0b8d370e6eda09cd0590d3 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 27 Oct 2020 15:19:27 +0000 Subject: [PATCH] Fixed #3835 --- src/Ombi/Controllers/TokenController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ombi/Controllers/TokenController.cs b/src/Ombi/Controllers/TokenController.cs index 38d2ad407..1e6f6794a 100644 --- a/src/Ombi/Controllers/TokenController.cs +++ b/src/Ombi/Controllers/TokenController.cs @@ -132,7 +132,7 @@ namespace Ombi.Controllers }; claims.AddRange(roles.Select(role => new Claim("role", role))); - var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_tokenAuthenticationOptions.SecretKey)); + var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(StoragePathSingleton.Instance.SecurityToken)); var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);