From b796a5e1014e208041d5c36ccfec68818c7adacb Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Mon, 26 Oct 2020 20:58:54 +0000 Subject: [PATCH] Fixed --- src/Ombi/Controllers/V1/TokenController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ombi/Controllers/V1/TokenController.cs b/src/Ombi/Controllers/V1/TokenController.cs index 80aa96f85..e133a939d 100644 --- a/src/Ombi/Controllers/V1/TokenController.cs +++ b/src/Ombi/Controllers/V1/TokenController.cs @@ -136,7 +136,7 @@ namespace Ombi.Controllers.V1 }; 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(StartupSingleton.Instance.SecurityKey)); var creds = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);