-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.3, 3.10
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-70242-master -
- Create an event listener to the user_created event that sends an email using email_to_user() function
- Set up oAuth2 login
- Login as a new user
- You will see debugging messages that the page context is not set, etc.
email_to_user() expects the page context and url to be set but the auth/oauth2/login.php page does not set them. Normally it immediately redirects and it is not important, however the event observers may experience problems