-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x]: New user activation email link pointing to site instead of CP #13204
Comments
Hi, thanks for reaching out. By default, the activation URL will point to Or do you maybe refer to where the user is taken after clicking the activation link? If that’s the case, then you can be taken to the homepage if the URL is not valid (e.g. expired, the user already activated their account etc). Hope the above helps. If I misunderstood the problem, please let me know. |
Thanks for the reply @i-just. I think there is a misunderstanding. I'm aware of the setPasswordPath and it's use but this issue isn't about that. When making the call to It ultimately calls If the user has been granted a group with the cp access permission it should link to the cp password reset URL, the same as if they had been given the cp access permission directly. If you create the user first, then choose to send the activation email from the cp it will link to the cp password reset URL. The issue appears to be that the user does not have the group permissions set when Hope that clarifies things a little more. Let me know if more info is needed. |
Looks like I completely missed your point, sorry. On it now! |
Craft 3.8.12 and 4.4.12 are out with a fix for this! |
What happened?
Description
When creating a new user with a group that has the CP access permission. The activation link goes to the site and not the CMS. If you create a new user with the group and the individual CP access permission it generates the link to the CP as expected.
If you create a new user with just the group but do not send the activation email at the same time and instead send the activation email for the user after it has been created, it also works correctly.
Steps to reproduce
Expected behaviour
The activation link should point to the CP as the user does have CP access permission as part of the group.
Actual behaviour
The activation link points to the site login.
Craft CMS version
4.4.9
PHP version
8.0.28
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: