Limit sign message length

This commit is contained in:
Tanner Collin 2021-12-22 06:01:50 +00:00
parent 2fd42f7b6c
commit 7623ef68fe

View File

@ -558,7 +558,7 @@ class StatsViewSet(viewsets.ViewSet, List):
@action(detail=False, methods=['post']) @action(detail=False, methods=['post'])
def sign(self, request): def sign(self, request):
try: try:
sign = request.data['sign'] sign = request.data['sign'][:500]
cache.set('sign', sign) cache.set('sign', sign)
if secrets.SIGN_TOKEN: if secrets.SIGN_TOKEN: