Update AppImage

This commit is contained in:
MacRimi
2025-11-13 17:46:07 +01:00
parent 07603f11db
commit c1d1121ed1
2 changed files with 11 additions and 1 deletions

View File

@@ -61,8 +61,13 @@ export function AuthSetup({ onComplete }: AuthSetupProps) {
throw new Error(data.error || "Failed to skip authentication")
}
if (data.auth_declined) {
console.log("[v0] Authentication skipped successfully - APIs should be accessible without token")
}
console.log("[v0] Authentication skipped successfully")
localStorage.setItem("proxmenux-auth-declined", "true")
localStorage.removeItem("proxmenux-auth-token") // Remove any old token
setOpen(false)
onComplete()
} catch (err) {

View File

@@ -135,7 +135,12 @@ def auth_skip():
success, message = auth_manager.decline_auth()
if success:
return jsonify({"success": True, "message": message})
# Return success with clear indication that APIs should be accessible
return jsonify({
"success": True,
"message": message,
"auth_declined": True # Add explicit flag for frontend
})
else:
return jsonify({"success": False, "message": message}), 400
except Exception as e: