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 db40827 commit a0e744e
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.authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function verifyGuest (hook) {
if (!user) return hook
debug('verifyGuest hook called on ', user._id)

// Check whether the user has been inivted. If not, nothing to do
// Check whether the user has been invited. If not, nothing to do
if (!user.sponsor) {
debug('Logged user is not a guest')
return hook
Expand Down
2 changes: 1 addition & 1 deletion core/api/hooks/hooks.push.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export async function sendNewSubscriptionEmail (hook) {

// Data
const app = hook.app
console.log(app)
const mailerService = app.getService('mailer')
const domainPath = app.get('domain') + '/#/'
const email = {
subject: 'Security alert - new browser detected',
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,
domainPath
Expand Down

0 comments on commit a0e744e

Please sign in to comment.