Update generator.js

Fixed issue where email provider was not being set correctly within the user controller.
The second instance of the `'var smtpTransport = nodemailer.createTransport(\'SMTP\', {'` was not being caught.
pull/2/head
Jake Larson 2014-04-23 13:04:31 -05:00
parent b8dbe3cebe
commit 3656e574a1
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ inquirer.prompt({
userController.splice(index + 1, 1, ' service: \'SendGrid\',');
userController.splice(index + 3, 1, ' user: secrets.sendgrid.user,');
userController.splice(index + 4, 1, ' pass: secrets.sendgrid.password');
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', 1);
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', (index + 1));
userController.splice(index + 1, 1, ' service: \'SendGrid\',');
userController.splice(index + 3, 1, ' user: secrets.sendgrid.user,');
userController.splice(index + 4, 1, ' pass: secrets.sendgrid.password');
@ -78,7 +78,7 @@ inquirer.prompt({
userController.splice(index + 1, 1, ' service: \'Mailgun\',');
userController.splice(index + 3, 1, ' user: secrets.mailgun.login,');
userController.splice(index + 4, 1, ' pass: secrets.mailgun.password');
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', 1);
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', (index + 1));
userController.splice(index + 1, 1, ' service: \'Mailgun\',');
userController.splice(index + 3, 1, ' user: secrets.mailgun.login,');
userController.splice(index + 4, 1, ' pass: secrets.mailgun.password');
@ -101,7 +101,7 @@ inquirer.prompt({
userController.splice(index + 1, 1, ' service: \'Mandrill\',');
userController.splice(index + 3, 1, ' user: secrets.mandrill.login,');
userController.splice(index + 4, 1, ' pass: secrets.mandrill.password');
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', 1);
index = userController.indexOf(' var smtpTransport = nodemailer.createTransport(\'SMTP\', {', (index + 1));
userController.splice(index + 1, 1, ' service: \'Mandrill\',');
userController.splice(index + 3, 1, ' user: secrets.mandrill.login,');
userController.splice(index + 4, 1, ' pass: secrets.mandrill.password');