Fixed email notifications.
Ylian Saint-Hilaire committed
Oct 18, 2021 at 17:52 UTC
860f7b97c09dce80f559a21563a05b5266b655c0
2 files changed
+16
-3
meshcentral.js
+1
-1
@@ -2107,7 +2107,7 @@ function CreateMeshCentralServer(config, args) {
2107
2108
// Check if any user needs email notification
2109
for (var i in users) {
2110
- const user = obj.webserver.users[i];
2110
+ const user = obj.webserver.users[users[i]];
2111
if ((user != null) && (user.email != null) && (user.emailVerified == true)) {
2112
var notify = 0;
2113
package.json
+15
-2
@@ -36,6 +36,9 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
+ "@yetzt/nedb": "^1.8.0",
40
+ "archiver": "^4.0.2",
41
+ "archiver-zip-encrypted": "^1.0.10",
42
"body-parser": "^1.19.0",
43
"cbor": "~5.2.0",
44
"compression": "^1.7.4",
@@ -43,13 +46,23 @@
46
"express": "^4.17.0",
47
"express-handlebars": "^3.1.0",
48
"express-ws": "^4.0.0",
49
+ "image-size": "^1.0.0",
50
"ipcheck": "^0.1.0",
51
+ "loadavg-windows": "^1.1.1",
52
"minimist": "^1.2.5",
53
+ "mongodb": "^4.1.0",
54
"multiparty": "^4.2.1",
49
- "@yetzt/nedb": "^1.8.0",
55
"node-forge": "^0.10.0",
56
+ "node-rdpjs-2": "^0.3.5",
57
+ "node-windows": "^0.1.4",
58
+ "nodemailer": "^6.7.0",
59
+ "otplib": "^10.2.3",
60
+ "saslprep": "^1.0.3",
61
+ "ssh2": "^1.5.0",
62
+ "web-push": "^3.4.5",
63
"ws": "^5.2.3",
52
- "yauzl": "^2.10.0"
64
+ "yauzl": "^2.10.0",
65
+ "yubikeyotp": "^0.2.0"
66
},
67
"repository": {
68
"type": "git",