fix enroll
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
01cebcfcec
commit
db30a62368
|
@ -126,7 +126,7 @@ class MobileDeviceViewSet(
|
||||||
device: MobileDevice = self.get_object()
|
device: MobileDevice = self.get_object()
|
||||||
data = MobileDeviceEnrollmentSerializer(data=request.data)
|
data = MobileDeviceEnrollmentSerializer(data=request.data)
|
||||||
data.is_valid(raise_exception=True)
|
data.is_valid(raise_exception=True)
|
||||||
device.name = data.validated_data["info"].validated_data["hostname"]
|
device.name = data.validated_data["info"]["hostname"]
|
||||||
device.confirmed = True
|
device.confirmed = True
|
||||||
device.device_id = data.validated_data["device_uid"]
|
device.device_id = data.validated_data["device_uid"]
|
||||||
device.save()
|
device.save()
|
||||||
|
|
Reference in New Issue