Skip to content
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

usernotconfirmed exception thrown checking require_active_user() #10

Open
alferx opened this issue Sep 10, 2021 · 0 comments
Open

usernotconfirmed exception thrown checking require_active_user() #10

alferx opened this issue Sep 10, 2021 · 0 comments

Comments

@alferx
Copy link

alferx commented Sep 10, 2021

Hi, I'm using Moodle 3.9 using latest version of your local_cohortrole plugin in conjuntion with local_profilecohort. The latest defines users membership using specific rules throwing an event that is taken by your plugin.
The issue is that core_user::require_active_user($user) throws an Exception reporting a usernotconfirmed error.
This is understandable because the $user which is registering for the first time to moodle, isn't already confirmed. In fact, when $user confirms his registration (ex. by email link) there is no events managed by your plugin and the user isn't assigned to the cohort.

Thank you for your attention,
Alessandro

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

No branches or pull requests

1 participant