Browse Source

perf: 优化签名认证

pull/8410/head
ibuler 2 years ago committed by Jiangjie.Bai
parent
commit
10adb4e6b7
  1. 2
      apps/authentication/backends/drf.py

2
apps/authentication/backends/drf.py

@ -198,6 +198,6 @@ class SignatureAuthentication(signature.SignatureAuthentication):
return None, None
user, secret = key.user, str(key.secret)
return user, secret
except AccessKey.DoesNotExist:
except (AccessKey.DoesNotExist, exceptions.ValidationError):
return None, None

Loading…
Cancel
Save