mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Fix error on already logged in
This commit is contained in:
parent
3d89d7ad1b
commit
94f9ef3c30
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue