Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Licenses don't get assigned to newly-registered users when email verification is disabled #18

Closed
benface opened this issue Sep 18, 2018 · 2 comments
Assignees

Comments

@benface
Copy link

benface commented Sep 18, 2018

If "Verify email addresses?" is disabled in the Craft User Settings and a license is purchased via guest checkout, when the user eventually registers, the license is not assigned to them. That is because the code that assigns unassigned licenses is only called when UsersService::EVENT_AFTER_ACTIVATE_USER is triggered, and that event is never triggered when email verification is disabled since users are active as soon as they're created (that seems to be by design, but if that is the bug, let me know and I will create an issue in the main Craft CMS repo).

@brandonkelly
Copy link
Member

@benface Thanks for pointing that out! It was a Craft bug but the fix was easy enough so no need to repost :)

@benface
Copy link
Author

benface commented Oct 11, 2018

Thanks @brandonkelly!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants