mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
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
|
||||
sender:
|
||||
address: config.mail.username
|
||||
reply_to: sender
|
||||
reply_to: sender or user.get('email')
|
||||
name: user.get('name')
|
||||
email_data:
|
||||
subject: "[CodeCombat] #{subject ? ('Feedback - ' + sender)}"
|
||||
subject: "[CodeCombat] #{subject ? ('Feedback - ' + sender or user.get('email'))}"
|
||||
content: content
|
||||
|
||||
if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue