fix(magic): entferne reportDeviceProtectionState aus Lock-Profil-Flow
Some checks failed
Deploy Staging / Build backend (Nitro) (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline was successful
Deploy Staging / Deploy zu Hetzner (push) Has been cancelled
Build ReBreak Magic Windows / NSIS Installer (x64) (push) Has been cancelled

- Status kommt jetzt über /api/protection/event vom iOS Plugin.
- /api/devices/protection-state gibt jetzt { success: true, data: null }
  zurück, damit der Rust-Client nicht failed.
This commit is contained in:
chahinebrini 2026-06-18 09:22:41 +02:00
parent 97f8d593a5
commit a7ac5545ae
2 changed files with 1 additions and 12 deletions

View File

@ -325,7 +325,6 @@ const {
stopLocalProfileServer, stopLocalProfileServer,
getInstalledProfiles, getInstalledProfiles,
mdmPush, mdmPush,
reportDeviceProtectionState,
} = useTauri(); } = useTauri();
const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle"); const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle");
@ -899,16 +898,6 @@ async function checkInlineLockProfile() {
lockLogs.value.push("✓ Lock-Profil erkannt"); lockLogs.value.push("✓ Lock-Profil erkannt");
lockLogs.value.push("→ Melde Lock-Profil-Status an Backend …");
await reportDeviceProtectionState(
props.device.deviceId,
"ios",
"nefilter",
true,
"Lock-Profil via QR-Code installiert",
);
lockLogs.value.push("✓ Backend aktualisiert");
lockLogs.value.push("→ Hole aktuellen Backend-Status …"); lockLogs.value.push("→ Hole aktuellen Backend-Status …");
await refreshMdmStatus(); await refreshMdmStatus();
lockLogs.value.push("✓ Status aktualisiert"); lockLogs.value.push("✓ Status aktualisiert");

View File

@ -88,5 +88,5 @@ export default defineEventHandler(async (event) => {
source ?? "app", source ?? "app",
); );
return { success: true }; return { success: true, data: null };
}); });