mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Enterprise unenroll fix
This commit is contained in:
parent
742081c94e
commit
fd7b985025
@ -110,6 +110,7 @@ public class RemoteSessionManagementServiceImpl implements RemoteSessionManageme
|
|||||||
+ " , deviceId : " + deviceId);
|
+ " , deviceId : " + deviceId);
|
||||||
}
|
}
|
||||||
} catch (OperationManagementException | InvalidDeviceException e) {
|
} catch (OperationManagementException | InvalidDeviceException e) {
|
||||||
|
log.error("error", e);
|
||||||
throw new RemoteSessionManagementException("Error occurred while adding initial operation for the " +
|
throw new RemoteSessionManagementException("Error occurred while adding initial operation for the " +
|
||||||
"device Type : " + deviceType + " , deviceId : " + deviceId);
|
"device Type : " + deviceType + " , deviceId : " + deviceId);
|
||||||
} catch (DeviceAccessAuthorizationException e) {
|
} catch (DeviceAccessAuthorizationException e) {
|
||||||
|
|||||||
@ -479,7 +479,8 @@ $(document).ready(function () {
|
|||||||
showPopup();
|
showPopup();
|
||||||
|
|
||||||
$("a#remove-unenroll-yes-link").click(function () {
|
$("a#remove-unenroll-yes-link").click(function () {
|
||||||
var serverDetails = $("input#afw-server-details").val() + "/api/device-mgt/android/v1.0/enterprise/324/unenroll";
|
var serverDetails = $("input#afw-server-details").val()
|
||||||
|
+ "/api/android-for-work/v1.0/google/enterprise/unenroll/" + $("input#afw-enterprise-id").val();
|
||||||
var emmToken = $("input#afw-backend-token").val();
|
var emmToken = $("input#afw-backend-token").val();
|
||||||
unenroll(serverDetails, emmToken);
|
unenroll(serverDetails, emmToken);
|
||||||
hidePopup();
|
hidePopup();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user