From 42cd33369407a1a64eeeced4a0729b5fcd7cac47 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 2 Dec 2022 22:12:07 +0100 Subject: [PATCH] clarification on the 5 minute sync auth leeway --- package-lock.json | 4 ++-- src/routes/api/login.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 90b601659..803689d63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trilium", - "version": "0.56.2", + "version": "0.57.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "trilium", - "version": "0.56.2", + "version": "0.57.2", "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { diff --git a/src/routes/api/login.js b/src/routes/api/login.js index 89d3ec4d7..f93467efa 100644 --- a/src/routes/api/login.js +++ b/src/routes/api/login.js @@ -26,7 +26,7 @@ function loginSync(req) { // login token is valid for 5 minutes if (Math.abs(timestamp.getTime() - now.getTime()) > 5 * 60 * 1000) { - return [401, { message: 'Auth request time is out of sync, please check that both client and server have correct time.' }]; + return [401, { message: 'Auth request time is out of sync, please check that both client and server have correct time. The difference between clocks has to be smaller than 5 minutes.' }]; } const syncVersion = req.body.syncVersion;