diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index f71d2d0..bcbc466 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -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.')) diff --git a/apiserver/apiserver/secrets.py.example b/apiserver/apiserver/secrets.py.example index b92dd74..6ebd629 100644 --- a/apiserver/apiserver/secrets.py.example +++ b/apiserver/apiserver/secrets.py.example @@ -61,7 +61,6 @@ DOOR_CODE = '' WIFI_PASS = '' MINECRAFT = '' MUMBLE = '' -SIGN_TOKEN = '' # Portal Email Credentials # For sending password resets, etc.