@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webbio/strapi-plugin-page-builder",
3
- "version": "0.9.20-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 @@ 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}/login`;
7
+ const callbackUrl = `${user.platform.domain}/inloggen`;
8
8
  return ctx.redirect(callbackUrl);
9
9
  } catch (error) {
10
10
  console.log(ctx);
@@ -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.toMail,
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
- to: user.email,
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
- firstName: user.firstName,
85
- lastName: user.lastName,
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}/reset-password/?${searchParams.toString()}`;
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.firstName,
118
- lastName: user.lastName,
120
+ firstName: user?.firstName,
121
+ lastName: user?.lastName,
119
122
  resetPasswordUrl
120
123
  }
121
124
  });
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "options": {},
8
8
  "attributes": {
9
- "toMail": {
9
+ "toEmail": {
10
10
  "type": "string"
11
11
  },
12
12
  "fromEmail": {