bip-pod-email
Advanced tools
Comparing version 0.3.11 to 0.3.12
{ | ||
"name": "bip-pod-email", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"author": "Michael Pearson", | ||
@@ -5,0 +5,0 @@ "description": "Email Pod for Bipio", |
@@ -50,4 +50,4 @@ /** | ||
templateVars = { | ||
'name' : accountInfo.user.name !== '' ? accountInfo.user.name : accountInfo.user.username, | ||
'name_first' : accountInfo.user.given_name !== '' ? accountInfo.user.given_name : accountInfo.user.username, | ||
'name' : accountInfo.user.name !== '' ? accountInfo.getName() : accountInfo.getUsername(), | ||
'name_first' : accountInfo.user.name !== '' ? accountInfo.getName() : accountInfo.getUsername(), | ||
'opt_in' : callbackUrl + '?nonce=' + nonce + '&accept=accept', // channel accept callback | ||
@@ -69,2 +69,4 @@ 'opt_out_perm' : callbackUrl + '?nonce=' + nonce + '&accept=no_global', // global optout | ||
templateVars['name_first'] = templateVars['name']; | ||
mailOptions.html = ejs.render(mailTemplate, templateVars); | ||
@@ -306,3 +308,3 @@ // send email | ||
nonce = options.nonce; | ||
ownerId = req.remoteUser.user.id; | ||
ownerId = req.remoteUser.getId(); | ||
@@ -309,0 +311,0 @@ // find the verification record |
62788
712