Turned on double optin for MailChimp.

This commit is contained in:
Scott Erickson 2014-11-20 14:31:50 -08:00
parent ef8e7563b4
commit fae09aad00

View file

@ -96,7 +96,7 @@ UserSchema.statics.updateMailChimp = (doc, callback) ->
params.email = if existingProps then {leid: existingProps.leid} else {email: doc.get('email')}
params.merge_vars = {groupings: [{id: mail.MAILCHIMP_GROUP_ID, groups: newGroups}]}
params.update_existing = true
params.double_optin = false
params.double_optin = true
onSuccess = (data) ->
doc.set('mailChimp', data)