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 01cebcfcec
commit db30a62368
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()