Skip to content

Commit

Permalink
Add encrypted mailgun credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Aug 21, 2016
1 parent d9a2f5a commit b9da688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -1 +1,2 @@
* text=auto
**/mailgun.json filter=crypt diff=crypt
6 changes: 2 additions & 4 deletions app/components/Preview.js
Expand Up @@ -22,6 +22,7 @@ import { Component, PropTypes } from 'react';
import { transform } from 'react-tools';
import jsx from 'markdown-it-jsx';

const mailgunUser = require( './../constants/mailgun.json' );

// E-LEARNING MODULE COMPONENTS //

Expand Down Expand Up @@ -77,10 +78,7 @@ export default class Preview extends Component {

const transporter = nodemailer.createTransport({
'service': 'Mailgun',
'auth': {
'user': '',
'pass': ''
}
'auth': mailgunUser
});
global.sendMail = ( opts, clbk ) => {
transporter.sendMail( opts, clbk );
Expand Down
3 changes: 3 additions & 0 deletions app/constants/mailgun.json
@@ -0,0 +1,3 @@
U2FsdGVkX1++um8W1mUikFkCJ3UZegHGSZ259okoghAlIiDdf1GMkWoci0X8bNjx
UBf3AZN6T5RcTjan0UqVt3c2c/a1ItZ7KOJu4fftazzzKiKD1Lzd86ZFMM96VBxY
ot/7xEqE99TP3lvytB/GD6LywLfDXxtgUDXJwhz+JbU=

0 comments on commit b9da688

Please sign in to comment.