fix: general qol additions and new analytics/telemetrics feature

This commit is contained in:
LukeGus
2026-07-20 13:29:03 -05:00
parent 00c0fe7cab
commit c1c06272d7
38 changed files with 1701 additions and 606 deletions
+6 -2
View File
@@ -1483,7 +1483,7 @@ router.get(
* name: field
* schema:
* type: string
* enum: [password, sudoPassword, vncPassword]
* enum: [password, sudoPassword, vncPassword, key, keyPassword]
* responses:
* 200:
* description: The requested password value.
@@ -1499,7 +1499,11 @@ router.get(
const userId = (req as AuthenticatedRequest).userId;
const field = (req.query.field as string) || "password";
if (!["password", "sudoPassword", "vncPassword"].includes(field)) {
if (
!["password", "sudoPassword", "vncPassword", "key", "keyPassword"].includes(
field,
)
) {
return res.status(400).json({ error: "Invalid field" });
}