Binato/server/util/getUserByToken.js

6 lines
173 B
JavaScript
Raw Normal View History

module.exports = function(token) {
for (let i = 0; i < global.users.length; i++) {
if (global.users[i].uuid == token)
return global.users[i];
}
}