fix enroll

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-10-05 20:05:13 +02:00
parent 713f8d6a19
commit 7a70f7ccb4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class MobileDeviceViewSet(
device: MobileDevice = self.get_object()
data = MobileDeviceEnrollmentSerializer(data=request.data)
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.device_id = data.validated_data["device_uid"]
device.save()