Skip to content

Commit

Permalink
wip: Email service should use an email sender adress instead of the S…
Browse files Browse the repository at this point in the history
…MTP authentication user #990
  • Loading branch information
cnouguier committed Nov 18, 2024
1 parent 1d1d91a commit ec62083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/api/hooks/hooks.push.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function sendNewSubscriptionEmail (hook) {
const domainPath = app.get('domain') + '/#/'
const email = {
subject: 'Security alert - new browser detected',
from: mailerService.options.auth.user,
from: mailerService.options.from || mailerService.options.auth.user,
// When changing email send to the new one so that it can be verified
to: updatedUser.email,
link: domainPath,
Expand Down
2 changes: 1 addition & 1 deletion core/api/services/account/account.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function (name, app, options) {
const mailerService = app.getService('mailer')
const domainPath = app.get('domain') + '/#/'
const email = {
from: mailerService.options.auth.user,
from: mailerService.options.from || mailerService.options.auth.user,
// When changing email send to the new one so that it can be verified
to: (type === 'identityChange' ? user.verifyChanges.email : user.email),
domainPath
Expand Down

0 comments on commit ec62083

Please sign in to comment.