fix pos login bug (client not find)
This commit is contained in:
@@ -32,9 +32,10 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
|
|||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def login(self, request):
|
def login(self, request):
|
||||||
""" login of pos device """
|
""" login of pos device """
|
||||||
|
"""
|
||||||
# get device owner (organization)
|
# get device owner (organization)
|
||||||
organization = self.get_device_organization()
|
organization = self.get_device_organization()
|
||||||
|
"""
|
||||||
|
|
||||||
# convert headers to dictionary
|
# convert headers to dictionary
|
||||||
headers_data = {key: request.headers.get(key) for key in self.HEADERS}
|
headers_data = {key: request.headers.get(key) for key in self.HEADERS}
|
||||||
|
|||||||
Reference in New Issue
Block a user