Unverified Commit 28acc6cc authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #1217 from jumpserver/dev

[Bugfix] 修复解密None的bug
parents 611289a5 763cf0d9
......@@ -72,6 +72,8 @@ class Signer(metaclass=Singleton):
return s.dumps(value)
def unsign(self, value):
if value is None:
return value
s = JSONWebSignatureSerializer(self.secret_key)
try:
return s.loads(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment