We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4c7e6 commit 7157816Copy full SHA for 7157816
admin/config.js
@@ -22,6 +22,7 @@ function Config(filename) {
22
this.salt = null;
23
this.dkey = null;
24
this.values = { };
25
+ this.canary = "";
26
this.filename = filename;
27
}
28
@@ -37,6 +38,8 @@ Config.prototype.load = async function() {
37
38
};
39
40
41
+ this.canary = data.canary || "";
42
+
43
this.salt = data.salt;
44
45
const password = await prompt.getPassword(colorify("Password (config-store): ", "bold"));
@@ -77,7 +80,8 @@ Config.prototype.save = function() {
77
80
ciphertext: ciphertext.toString("base64"),
78
81
iv: iv.toString("base64"),
79
82
salt: this.salt,
- hmac: hmac
83
+ hmac: hmac,
84
+ canary: this.canary
85
86
87
fs.writeFileSync(this.filename, JSON.stringify(data, null, 2));
0 commit comments