diff --git a/meshuser.js b/meshuser.js index 4ca2dcc6..27269a60 100644 --- a/meshuser.js +++ b/meshuser.js @@ -872,7 +872,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use // Always lowercase the email address command.email = command.email.toLowerCase(); - if (parent.users[req.session.userid].email != command.email) { + if (obj.user.email != command.email) { // Check if this email is already validated on a different account db.GetUserWithVerifiedEmail(domain.id, command.email, function (err, docs) { if ((docs != null) && (docs.length > 0)) { @@ -914,7 +914,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use // Always lowercase the email address command.email = command.email.toLowerCase(); - if ((parent.parent.mailserver != null) && (parent.users[req.session.userid].email.toLowerCase() == command.email)) { + if ((parent.parent.mailserver != null) && (obj.user.email.toLowerCase() == command.email)) { // Send the verification email parent.parent.mailserver.sendAccountCheckMail(domain, user.name, user.email); } diff --git a/package.json b/package.json index af63a549..abeec045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.0-g", + "version": "0.4.0-h", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default-min.handlebars b/views/default-min.handlebars index fc42dc2c..04fea34c 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1 +1 @@ -
{{{logoutControl}}}
My Devices | My Account | My Events | My Files | My Users | My Server |
{{{logoutControl}}}
My Devices | My Account | My Events | My Files | My Users | My Server |