Add plugin hook for user login

This commit is contained in:
Ryan Blenis 2019-12-26 10:45:51 -05:00
parent e7e9532255
commit 07c8fd2990

View File

@ -402,6 +402,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// We are all set, start receiving data // We are all set, start receiving data
ws._socket.resume(); ws._socket.resume();
if (parent.parent.pluginHandler != null) parent.parent.pluginHandler.callHook('userLoggedIn_end', user);
}); });
} catch (e) { console.log(e); } } catch (e) { console.log(e); }