mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Turned off sending mail on the dev environment.
This commit is contained in:
parent
594b54a40e
commit
ff3e2ba37f
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ module.exports.setupRoutes = (app) ->
|
|||
user.set('passwordReset', Math.random().toString(36).slice(2,7).toUpperCase())
|
||||
user.save (err) =>
|
||||
return returnServerError(res) if err
|
||||
if config.isProduction or true
|
||||
if config.isProduction
|
||||
transport = createSMTPTransport()
|
||||
options = createMailOptions req.body.email, user.get('passwordReset')
|
||||
transport.sendMail options, (error, response) ->
|
||||
|
|
|
@ -5,7 +5,7 @@ nodemailer = require 'nodemailer'
|
|||
module.exports.setupRoutes = (app) ->
|
||||
app.post '/contact', (req, res) ->
|
||||
winston.info "Sending mail from #{req.body.email} saying #{req.body.message}"
|
||||
if config.isProduction or true
|
||||
if config.isProduction
|
||||
transport = createSMTPTransport()
|
||||
options = createMailOptions req.body.email, req.body.message, req.user
|
||||
transport.sendMail options, (error, response) ->
|
||||
|
|
Loading…
Reference in a new issue