Limit sign message length
This commit is contained in:
parent
2fd42f7b6c
commit
7623ef68fe
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user