@webbio/strapi-plugin-page-builder 0.9.12-authentication → 0.9.13-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.12-authentication",
3
+ "version": "0.9.13-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 @@ const routes = {
4
4
  prefix: undefined,
5
5
  routes: [
6
6
  {
7
- method: 'POST',
7
+ method: 'GET',
8
8
  path: '/activate/:token',
9
9
  handler: 'private-content.activateUser',
10
10
  config: { policies: [], auth: false }
@@ -59,11 +59,9 @@ export default {
59
59
  });
60
60
  },
61
61
  async sendConfirmationEmail(user) {
62
- console.log('HALLO');
63
62
  const foundUser = await strapi.entityService.findOne(USER_PERMISSION_USER_PLUGIN, user.id, {
64
63
  populate: { platform: { populate: { platformEmails: { populate: '*' } } } }
65
64
  });
66
- console.log({ foundUser });
67
65
  if (foundUser && foundUser.platform) {
68
66
  const jwtService = strapi.plugin('users-permissions').service('jwt');
69
67
  const confirmationToken = await jwtService.issue(
@@ -6,7 +6,6 @@ const { ApplicationError } = errors;
6
6
 
7
7
  export const platformRegister = {
8
8
  async resolve(parent, args, context) {
9
- console.log('WAAROM LOG JIJ NIKS');
10
9
  const pluginStore = await strapi.store({ type: 'plugin', name: 'users-permissions' });
11
10
  const settings: any = await pluginStore.get({ key: 'advanced' });
12
11
 
@@ -18,8 +17,6 @@ export const platformRegister = {
18
17
  .query('plugin::users-permissions.role')
19
18
  .findOne({ where: { type: settings.default_role } });
20
19
 
21
- console.log('dsfjsdds');
22
-
23
20
  if (!role) {
24
21
  throw new ApplicationError('Impossible to find the default role');
25
22
  }
@@ -62,7 +59,6 @@ export const platformRegister = {
62
59
  auth: false
63
60
  });
64
61
 
65
- console.log('HALLO MADDERFACKKER');
66
62
  await strapi.service('plugin::page-builder.email').sendConfirmationEmail(createdUser);
67
63
 
68
64
  return {