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: else:
cache.set('sign', sign) 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) return Response(200)
except KeyError: except KeyError:
raise exceptions.ValidationError(dict(sign='This field is required.')) raise exceptions.ValidationError(dict(sign='This field is required.'))

View File

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