@webbio/strapi-plugin-page-builder 0.9.11-authentication → 0.9.12-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.11-authentication",
3
+ "version": "0.9.12-authentication",
4
4
  "description": "This is the description of the plugin.",
5
5
  "scripts": {
6
6
  "develop": "tsc -p tsconfig.server.json -w",
@@ -73,9 +73,11 @@ exports.default = {
73
73
  });
74
74
  },
75
75
  async sendConfirmationEmail(user) {
76
+ console.log('HALLO');
76
77
  const foundUser = await strapi.entityService.findOne(constants_1.USER_PERMISSION_USER_PLUGIN, user.id, {
77
78
  populate: { platform: { populate: { platformEmails: { populate: '*' } } } }
78
79
  });
80
+ console.log({ foundUser });
79
81
  if (foundUser && foundUser.platform) {
80
82
  const jwtService = strapi.plugin('users-permissions').service('jwt');
81
83
  const confirmationToken = await jwtService.issue(
@@ -8,6 +8,7 @@ const schemas_1 = require("../../schemas");
8
8
  const { ApplicationError } = utils_2.errors;
9
9
  exports.platformRegister = {
10
10
  async resolve(parent, args, context) {
11
+ console.log('WAAROM LOG JIJ NIKS');
11
12
  const pluginStore = await strapi.store({ type: 'plugin', name: 'users-permissions' });
12
13
  const settings = await pluginStore.get({ key: 'advanced' });
13
14
  await (0, schemas_1.validateRegisterSchema)(args.input);
@@ -15,6 +16,7 @@ exports.platformRegister = {
15
16
  const role = await strapi
16
17
  .query('plugin::users-permissions.role')
17
18
  .findOne({ where: { type: settings.default_role } });
19
+ console.log('dsfjsdds');
18
20
  if (!role) {
19
21
  throw new ApplicationError('Impossible to find the default role');
20
22
  }
@@ -52,6 +54,7 @@ exports.platformRegister = {
52
54
  const sanitizedUser = utils_1.sanitize.contentAPI.output(createdUser, userModel, {
53
55
  auth: false
54
56
  });
57
+ console.log('HALLO MADDERFACKKER');
55
58
  await strapi.service('plugin::page-builder.email').sendConfirmationEmail(createdUser);
56
59
  return {
57
60
  user: sanitizedUser