diff options
Diffstat (limited to 'start/events.js')
-rw-r--r-- | start/events.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/start/events.js b/start/events.js index 481ad98..a99afd5 100644 --- a/start/events.js +++ b/start/events.js | |||
@@ -5,7 +5,7 @@ const Env = use('Env'); | |||
5 | Event.on('forgot::password', async ({ user, token }) => { | 5 | Event.on('forgot::password', async ({ user, token }) => { |
6 | const body = ` | 6 | const body = ` |
7 | Hello ${user.username}, | 7 | Hello ${user.username}, |
8 | we received a request to reset your Ferdi account password. | 8 | we received a request to reset your Ferdium account password. |
9 | Use the link below to reset your password. If you didn't requested that your password be reset, please ignore this message. | 9 | Use the link below to reset your password. If you didn't requested that your password be reset, please ignore this message. |
10 | 10 | ||
11 | ${Env.get('APP_URL')}/user/reset?token=${encodeURIComponent(token)} | 11 | ${Env.get('APP_URL')}/user/reset?token=${encodeURIComponent(token)} |
@@ -15,7 +15,7 @@ This message was sent automatically. Please do not reply. | |||
15 | console.log('Sending message', body); | 15 | console.log('Sending message', body); |
16 | try { | 16 | try { |
17 | await Mail.raw(body, (message) => { | 17 | await Mail.raw(body, (message) => { |
18 | message.subject('[Ferdi] Reset your password'); | 18 | message.subject('[Ferdium] Reset your password'); |
19 | message.from(Env.get('MAIL_SENDER')); | 19 | message.from(Env.get('MAIL_SENDER')); |
20 | message.to(user.email); | 20 | message.to(user.email); |
21 | }); | 21 | }); |