diff --git a/src/widgets/unifi/proxy.js b/src/widgets/unifi/proxy.js index dc1c437b9..95ac331e0 100644 --- a/src/widgets/unifi/proxy.js +++ b/src/widgets/unifi/proxy.js @@ -98,7 +98,7 @@ export default async function unifiProxyHandler(req, res) { } const json = JSON.parse(data.toString()); - if (!(json?.meta?.rc === "ok" || json.login_time)) { + if (!(json?.meta?.rc === "ok" || json?.login_time || json?.update_time)) { logger.error("Error logging in to Unifi: Data: %s", data); return res.status(401).end(data); }