mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved web user interface.
This commit is contained in:
parent
9501ffd609
commit
da4cade3a4
8 changed files with 134 additions and 63 deletions
|
@ -94,7 +94,7 @@ module.exports.CreateMeshMain = function (parent) {
|
|||
|
||||
// Load the cookie encryption key from the database
|
||||
obj.parent.db.Get('MailCookieEncryptionKey', function (err, docs) {
|
||||
if ((docs.length > 0) && (docs[0].key != null)) {
|
||||
if ((docs.length > 0) && (docs[0].key != null) && (obj.parent.mailtokengen == null)) {
|
||||
// Key is present, use it.
|
||||
obj.mailCookieEncryptionKey = Buffer.from(docs[0].key, 'hex');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue