You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
var model = new Participant({email: process.argv[2], name: process.argv[3], hash: uuid.v4()});
model.save().then(function() {
if (process.env.MAILGUN_API_KEY) {
var mg = new Mailgun(process.env.MAILGUN_API_KEY);
mg.sendText('Turku Agile Day <[email protected]>', model.get('email'), 'Choose your workshops', 'Hi there!\nYou can choose in which workshops to participate by following the following link: http://localhost:1337/' + model.get('hash') + '\n\nBest regards,\nTurku Agile Day Organizers', function() {
console.log('Check your email for instructions');
process.exit(0);
});
} else {
console.log('Login at http://localhost:1337/%s', model.get('hash'));