mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
more granular detection of changes which forces less disruptive realoding. Refactoring of audit functions
This commit is contained in:
@@ -40,6 +40,10 @@ function hmac(secret, value) {
|
||||
return hmac.digest('base64');
|
||||
}
|
||||
|
||||
function browserId(req) {
|
||||
return req.get('x-browser-id');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
@@ -47,5 +51,6 @@ module.exports = {
|
||||
newNoteId,
|
||||
toBase64,
|
||||
fromBase64,
|
||||
hmac
|
||||
hmac,
|
||||
browserId
|
||||
};
|
||||
Reference in New Issue
Block a user