Add plugin hook for user login

This commit is contained in:
Ryan Blenis 2019-12-26 10:45:51 -05:00
parent ca163ea218
commit 718678ed09

View File

@ -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); }