Commit 31025b8c authored by ibuler's avatar ibuler

[bugfix] 修复重置密码bug

parent 25f3d5bf
......@@ -63,7 +63,7 @@ class Signer(object):
try:
return s.loads(value)
except BadSignature:
return None
return {}
def sign_t(self, value, expires_in=3600):
s = TimedJSONWebSignatureSerializer(self.secret_key, expires_in=expires_in)
......@@ -74,7 +74,7 @@ class Signer(object):
try:
return s.loads(value)
except (BadSignature, SignatureExpired):
return None
return {}
def date_expired_default():
......
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