This commit is contained in:
Wolfgang Hottgenroth 2021-01-27 12:40:27 +01:00
parent da06065959
commit 875301b437
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

View File

@ -103,7 +103,7 @@ def generateToken(**args):
# print("DEBUG: generateToken: add claim {} -> {}".format(claim[0], claim[1]))
payload["x-{}".format(claim[0])] = claim[1]
return jwt.encode(payload, JWT_ISSUER)
return jwt.encode(payload, JWT_SECRET)
except NoUserException:
print("ERROR: generateToken: no user found, login or application wrong")
raise werkzeug.exceptions.Unauthorized()