expire: 30*60*1000, //30 minutes in milliseconds
},
- // Path to tournament repository (to synchronize DBs)
- tourneyPath: "/path/to/folder",
-
// Email settings
mail: {
host: "mail_host_address",
email: email
};
setAndSendLoginToken("Welcome to " + params.siteURL, user);
- // Update tournament DB (TODO: if error, log it)
- exec(params.tourneyPath + "/dbsync/insert_user.py " + ret.id);
res.json({});
}
});
notify: !!req.body.notify,
};
UserModel.updateSettings(user);
- exec(params.tourneyPath + "/dbsync/update_user.py " + ret.id);
res.json({});
}
});