authorize apple-test to login without checking device_id

clubs
Laurent 1 year ago
parent dbe6259ab4
commit 0fe2f1d5c1
  1. 2
      api/views.py

@ -28,7 +28,7 @@ class CustomAuthToken(APIView):
if user is not None: if user is not None:
if user.device_id is None or user.device_id == device_id: if user.device_id is None or user.device_id == device_id or user.username == 'apple-test':
user.device_id = device_id user.device_id = device_id
user.save() user.save()

Loading…
Cancel
Save