@webbio/strapi-plugin-page-builder 0.9.16-authentication → 0.9.17-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 +2 -2
- package/dist/server/schema/platform-start.json +0 -3
- package/dist/tsconfig.server.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/server/controllers/private-content.ts +2 -3
- package/server/schema/platform-start.json +0 -3
package/package.json
CHANGED
|
@@ -4,9 +4,8 @@ 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.
|
|
8
|
-
|
|
9
|
-
return ctx.redirect('');
|
|
7
|
+
const callbackUrl = `${user.platform.domain}/login`;
|
|
8
|
+
return ctx.redirect(callbackUrl);
|
|
10
9
|
} catch (error) {
|
|
11
10
|
console.log(ctx);
|
|
12
11
|
return ctx.unauthorized('User is already confirmed or token is invalid');
|