small text changes

This commit is contained in:
zadam 2020-04-24 21:21:22 +02:00
parent 8526cb2315
commit ac608b9334
3 changed files with 4 additions and 3 deletions

1
.idea/vcs.xml generated
View File

@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component> </component>
</project> </project>

View File

@ -5,12 +5,12 @@ const TPL = `
<div class="btn-group btn-group-xs"> <div class="btn-group btn-group-xs">
<button type="button" <button type="button"
class="btn btn-sm icon-button bx bx-check-shield protect-button" class="btn btn-sm icon-button bx bx-check-shield protect-button"
title="Protected note can be viewed and edited only after entering password"> title="Set this note as protected which means it will possible to view and edit this note only after entering password">
</button> </button>
<button type="button" <button type="button"
class="btn btn-sm icon-button bx bx-shield-x unprotect-button" class="btn btn-sm icon-button bx bx-shield-x unprotect-button"
title="Not protected note can be viewed without entering password"> title="Set this note as unprotected which will make it viewable and editable without entering password">
</button> </button>
</div>`;``; </div>`;``;

View File

@ -27,7 +27,7 @@ async function loginSync(req) {
// login token is valid for 5 minutes // login token is valid for 5 minutes
if (Math.abs(timestamp.getTime() - now.getTime()) > 5 * 60 * 1000) { if (Math.abs(timestamp.getTime() - now.getTime()) > 5 * 60 * 1000) {
return [400, { message: 'Auth request time is out of sync' }]; return [400, { message: 'Auth request time is out of sync, please check that both client and server have correct time.' }];
} }
const syncVersion = req.body.syncVersion; const syncVersion = req.body.syncVersion;