mirror of https://github.com/xwiki-labs/cryptpad
Fix EINVAL on install page when token was just created
This commit is contained in:
parent
b17b2c5cd4
commit
307a3f4c5c
|
@ -51,6 +51,8 @@ nThen(function (w) {
|
|||
let decree = ["ADD_INSTALL_TOKEN",[token],"",+new Date()];
|
||||
Fs.appendFile(decreeName, JSON.stringify(decree) + '\n', w(function (err) {
|
||||
if (err) { console.log(err); return; }
|
||||
Env.installToken = token;
|
||||
Env.envUpdated.fire();
|
||||
printLink();
|
||||
}));
|
||||
}).nThen(function () {
|
||||
|
|
Loading…
Reference in New Issue