mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
data key is not encrypted with aes-cbc as well
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const utils = require('./utils');
|
||||
|
||||
function setDataKey(req, decryptedDataKey) {
|
||||
req.session.decryptedDataKey = decryptedDataKey;
|
||||
req.session.decryptedDataKey = Array.from(decryptedDataKey); // can't store buffer in session
|
||||
req.session.protectedSessionId = utils.randomSecureToken(32);
|
||||
|
||||
return req.session.protectedSessionId;
|
||||
|
||||
Reference in New Issue
Block a user