From 07c8fd29902c44e5a0251c4681fcc788169ac0fe Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Thu, 26 Dec 2019 10:45:51 -0500 Subject: [PATCH] Add plugin hook for user login --- meshuser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/meshuser.js b/meshuser.js index d9e8dfee..8d0769a7 100644 --- a/meshuser.js +++ b/meshuser.js @@ -402,6 +402,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use // We are all set, start receiving data ws._socket.resume(); + if (parent.parent.pluginHandler != null) parent.parent.pluginHandler.callHook('userLoggedIn_end', user); }); } catch (e) { console.log(e); }