Fix hash issue
This commit is contained in:
parent
8825795ff5
commit
78f402a840
@ -103,7 +103,7 @@ namespace ManagerService.Service.Services
|
||||
|
||||
public object GenerateToken(string username)
|
||||
{
|
||||
var secretKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes("WVD[&vAwis9=#883bM$FRc0Mw8h")); // Put the secret in a file or something
|
||||
var secretKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_tokenSettings.Secret)); // Put the secret in a file or something
|
||||
|
||||
var claims = new Claim[] {
|
||||
new Claim(ClaimTypes.Name, username),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user