@webbio/strapi-plugin-page-builder 0.9.21-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webbio/strapi-plugin-page-builder",
3
- "version": "0.9.21-authentication",
3
+ "version": "0.9.23-authentication",
4
4
  "description": "This is the description of the plugin.",
5
5
  "scripts": {
6
6
  "develop": "tsc -p tsconfig.server.json -w",
@@ -4,7 +4,7 @@ exports.default = {
4
4
  async activateUser(ctx) {
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}/login`;
7
+ const callbackUrl = `${user.platform.domain}/inloggen`;
8
8
  return ctx.redirect(callbackUrl);
9
9
  }
10
10
  catch (error) {
@@ -86,14 +86,17 @@ exports.default = {
86
86
  await this.sendMail({
87
87
  // @ts-ignore
88
88
  from: foundUser.platform.platformEmails.accountCreatedMail.fromEmail,
89
- to: user.email,
89
+ // @ts-ignore
90
+ to: foundUser.email,
90
91
  // @ts-ignore
91
92
  subject: foundUser.platform.platformEmails.accountCreatedMail.subject,
92
93
  // @ts-ignore
93
94
  text: foundUser.platform.platformEmails.accountCreatedMail.message,
94
95
  variables: {
95
- firstName: user.firstName,
96
- lastName: user.lastName,
96
+ // @ts-ignore
97
+ firstName: foundUser.firstName,
98
+ // @ts-ignore
99
+ lastName: foundUser.lastName,
97
100
  confirmEmailUrl
98
101
  }
99
102
  });
@@ -109,7 +112,7 @@ exports.default = {
109
112
  });
110
113
  // @ts-ignore
111
114
  const searchParams = new URLSearchParams({ token: resetPasswordToken });
112
- const resetPasswordUrl = `${user.platform.domain}/reset-password/?${searchParams.toString()}`;
115
+ const resetPasswordUrl = `${user.platform.domain}/wachtwoord-resetten/?${searchParams.toString()}`;
113
116
  await this.sendMail({
114
117
  // @ts-ignore
115
118
  from: user.platform.platformEmails.resetPasswordMail.fromEmail,
@@ -119,8 +122,8 @@ exports.default = {
119
122
  // @ts-ignore
120
123
  text: user.platform.platformEmails.resetPasswordMail.message,
121
124
  variables: {
122
- firstName: user.firstName,
123
- lastName: user.lastName,
125
+ firstName: user === null || user === void 0 ? void 0 : user.firstName,
126
+ lastName: user === null || user === void 0 ? void 0 : user.lastName,
124
127
  resetPasswordUrl
125
128
  }
126
129
  });