File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function verifyGuest (hook) {
17
17
if ( ! user ) return hook
18
18
debug ( 'verifyGuest hook called on ' , user . _id )
19
19
20
- // Check whether the user has been inivted . If not, nothing to do
20
+ // Check whether the user has been invited . If not, nothing to do
21
21
if ( ! user . sponsor ) {
22
22
debug ( 'Logged user is not a guest' )
23
23
return hook
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ export async function sendNewSubscriptionEmail (hook) {
25
25
26
26
// Data
27
27
const app = hook . app
28
+ console . log ( app )
28
29
const mailerService = app . getService ( 'mailer' )
29
30
const domainPath = app . get ( 'domain' ) + '/#/'
30
31
const email = {
31
32
subject : 'Security alert - new browser detected' ,
32
33
from : mailerService . options . from || mailerService . options . auth . user ,
33
- // When changing email send to the new one so that it can be verified
34
34
to : updatedUser . email ,
35
35
link : domainPath ,
36
36
domainPath
You can’t perform that action at this time.
0 commit comments