@webbio/strapi-plugin-page-builder 0.9.20-authentication → 0.9.23-authentication
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/server/controllers/private-content.js +1 -1
- package/dist/server/services/email.js +10 -7
- package/dist/server/services/private-content/components/admin-email.json +1 -1
- package/dist/tsconfig.server.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/server/controllers/private-content.ts +1 -1
- package/server/services/email.ts +10 -7
- package/server/services/private-content/components/admin-email.json +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
async activateUser(ctx: Context): Promise<any> {
|
|
5
5
|
try {
|
|
6
6
|
const user = await strapi.service('plugin::page-builder.private-content').activateUser(ctx.params.token);
|
|
7
|
-
const callbackUrl = `${user.platform.domain}/
|
|
7
|
+
const callbackUrl = `${user.platform.domain}/inloggen`;
|
|
8
8
|
return ctx.redirect(callbackUrl);
|
|
9
9
|
} catch (error) {
|
|
10
10
|
console.log(ctx);
|
package/server/services/email.ts
CHANGED
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
// @ts-ignore we all love strapi typings
|
|
43
43
|
from: foundUser.platform.platformEmails.adminEmail.fromEmail,
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
to: foundUser.platform.platformEmails.adminEmail.
|
|
45
|
+
to: foundUser.platform.platformEmails.adminEmail.toEmail,
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
subject: foundUser.platform.platformEmails.adminEmail.subject,
|
|
48
48
|
// @ts-ignore
|
|
@@ -75,14 +75,17 @@ export default {
|
|
|
75
75
|
await this.sendMail({
|
|
76
76
|
// @ts-ignore
|
|
77
77
|
from: foundUser.platform.platformEmails.accountCreatedMail.fromEmail,
|
|
78
|
-
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
to: foundUser.email,
|
|
79
80
|
// @ts-ignore
|
|
80
81
|
subject: foundUser.platform.platformEmails.accountCreatedMail.subject,
|
|
81
82
|
// @ts-ignore
|
|
82
83
|
text: foundUser.platform.platformEmails.accountCreatedMail.message,
|
|
83
84
|
variables: {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
firstName: foundUser.firstName,
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
lastName: foundUser.lastName,
|
|
86
89
|
confirmEmailUrl
|
|
87
90
|
}
|
|
88
91
|
});
|
|
@@ -103,7 +106,7 @@ export default {
|
|
|
103
106
|
|
|
104
107
|
// @ts-ignore
|
|
105
108
|
const searchParams = new URLSearchParams({ token: resetPasswordToken });
|
|
106
|
-
const resetPasswordUrl = `${user.platform.domain}/
|
|
109
|
+
const resetPasswordUrl = `${user.platform.domain}/wachtwoord-resetten/?${searchParams.toString()}`;
|
|
107
110
|
|
|
108
111
|
await this.sendMail({
|
|
109
112
|
// @ts-ignore
|
|
@@ -114,8 +117,8 @@ export default {
|
|
|
114
117
|
// @ts-ignore
|
|
115
118
|
text: user.platform.platformEmails.resetPasswordMail.message,
|
|
116
119
|
variables: {
|
|
117
|
-
firstName: user
|
|
118
|
-
lastName: user
|
|
120
|
+
firstName: user?.firstName,
|
|
121
|
+
lastName: user?.lastName,
|
|
119
122
|
resetPasswordUrl
|
|
120
123
|
}
|
|
121
124
|
});
|