From 0fe2f1d5c1364544c83ec3898e333e20a0a39cb8 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 19 Aug 2024 09:49:45 +0200 Subject: [PATCH] authorize apple-test to login without checking device_id --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index d1b9fda..7092afd 100644 --- a/api/views.py +++ b/api/views.py @@ -28,7 +28,7 @@ class CustomAuthToken(APIView): 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.save()