Pulling email from user in contact form if they gave an invalid email reply-to.
This commit is contained in:
parent
f17b3bd03b
commit
759e193f29
1 changed files with 2 additions and 2 deletions
|
@ -40,10 +40,10 @@ createMailContext = (req, done) ->
|
||||||
address: if premium then config.mail.supportPremium else config.mail.supportPrimary
|
address: if premium then config.mail.supportPremium else config.mail.supportPrimary
|
||||||
sender:
|
sender:
|
||||||
address: config.mail.username
|
address: config.mail.username
|
||||||
reply_to: sender
|
reply_to: sender or user.get('email')
|
||||||
name: user.get('name')
|
name: user.get('name')
|
||||||
email_data:
|
email_data:
|
||||||
subject: "[CodeCombat] #{subject ? ('Feedback - ' + sender)}"
|
subject: "[CodeCombat] #{subject ? ('Feedback - ' + sender or user.get('email'))}"
|
||||||
content: content
|
content: content
|
||||||
|
|
||||||
if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
||||||
|
|
Reference in a new issue