Skip to content

Commit 3e71c63

Browse files
committed
fix password reset email
1 parent 4321d56 commit 3e71c63

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

config/local.example.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
"baseURL": "http://localhost:3030",
55
"frontURL": "http://localhost:3000",
66
"smtpConfig": {
7-
"host": "localhost",
7+
"host": "0.0.0.0",
88
"port": 1025,
9-
"secure": false,
10-
"ignoreTLS": true,
11-
"auth": {
12-
"user": "",
13-
"pass": ""
14-
}
9+
"ignoreTLS": true
1510
},
1611
"thumbor": {
1712
"url": "",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../layout/common';
1+
@import '../../../layout/common';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../layout/common';
1+
@import '../../../layout/common';

email-templates/account/reset-password/de/html.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
</tr>
2121
<tr>
2222
<td class="aligncenter content-block">
23-
Wenn du diese Nachricht ignorierst bleibt dein passwort wie es ist.
23+
Wenn du diese Nachricht ignorierst bleibt dein Passwort, wie es ist.
2424
</td>
2525
</tr>
2626
<tr>
2727
<td class="aligncenter content-block" itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler">
28-
Wenn du es nicht warst der dein Passwort zurücksetzen wollte <a href='mailto:{{returnEmail}}?subject=I did not reset my password&body=Someone unauthorized sent this reset password request.'>lass es uns wissen!</a>
28+
Wenn du es nicht warst, der dein Passwort zurücksetzen wollte <a href='mailto:{{returnEmail}}?subject=I did not reset my password&body=Someone unauthorized sent this reset password request.'>lass es uns wissen!</a>
2929
</td>
3030
</tr>
3131
<tr>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../layout/common';
1+
@import '../../../layout/common';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../layout/common';
1+
@import '../../../layout/common';

server/services/auth-management/notifier.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ module.exports = function (app) {
4444
user.language || 'en'
4545
);
4646

47-
const hashLink = getLink(linktype, user.verifyToken || null);
47+
const token = user.verifyToken || user.resetToken || user.changeToken;
48+
const hashLink = getLink(linktype, token || null);
4849
const frontURL = app.get('frontURL');
4950
const backURL = app.get('baseURL');
5051

@@ -132,15 +133,19 @@ module.exports = function (app) {
132133
'verify',
133134
user
134135
);
135-
case 'resetPwd':
136-
return buildEmail('reset-password', 'Password reset', 'reset', user);
137136
case 'sendResetPwd':
138137
return buildEmail(
139-
'password-was-reset',
140-
'Your password was reset',
138+
'reset-password',
139+
'Password reset',
141140
'reset',
142141
user
143142
);
143+
case 'resetPwd':
144+
return buildEmail(
145+
'password-reset',
146+
'Your password was reset',
147+
'reset',
148+
user);
144149
case 'passwordChange':
145150
return buildEmail(
146151
'password-change',

0 commit comments

Comments
 (0)