Remove particle sign integration

This commit is contained in:
Tanner Collin 2022-06-01 03:18:56 +00:00
parent f07781afe6
commit 859b716f2d
2 changed files with 0 additions and 9 deletions

View File

@ -651,14 +651,6 @@ class StatsViewSet(viewsets.ViewSet, List):
else:
cache.set('sign', sign)
if secrets.SIGN_TOKEN:
try:
post_data = dict(access_token=secrets.SIGN_TOKEN, args=sign)
r = requests.post('https://api.particle.io/v1/devices/200042000647343232363230/text/', data=post_data, timeout=5)
r.raise_for_status()
except:
raise exceptions.ValidationError(dict(sign='Something went wrong :('))
return Response(200)
except KeyError:
raise exceptions.ValidationError(dict(sign='This field is required.'))

View File

@ -61,7 +61,6 @@ DOOR_CODE = ''
WIFI_PASS = ''
MINECRAFT = ''
MUMBLE = ''
SIGN_TOKEN = ''
# Portal Email Credentials
# For sending password resets, etc.