Skip to content

Commit a0e744e

Browse files
committed
wip: Email service should use an email sender adress instead of the SMTP authentication user #990
1 parent db40827 commit a0e744e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/api/hooks/hooks.authentication.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function verifyGuest (hook) {
1717
if (!user) return hook
1818
debug('verifyGuest hook called on ', user._id)
1919

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
2121
if (!user.sponsor) {
2222
debug('Logged user is not a guest')
2323
return hook

core/api/hooks/hooks.push.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export async function sendNewSubscriptionEmail (hook) {
2525

2626
// Data
2727
const app = hook.app
28+
console.log(app)
2829
const mailerService = app.getService('mailer')
2930
const domainPath = app.get('domain') + '/#/'
3031
const email = {
3132
subject: 'Security alert - new browser detected',
3233
from: mailerService.options.from || mailerService.options.auth.user,
33-
// When changing email send to the new one so that it can be verified
3434
to: updatedUser.email,
3535
link: domainPath,
3636
domainPath

0 commit comments

Comments
 (0)