-
Bug
-
Resolution: Fixed
-
Minor
-
3.5, 3.5.1, 3.5.2, 3.5.3, 3.6, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-63677-master -
We were finding that when multiple users were attempting to create an account with the new tool_policy plugin enabled, they would be bounced, seemingly at random, back to the front page or initial policy page and often unable to create a new account.
You can test this by having two users try to create accounts via email authentication with policies enabled. User 1 goes through the policy agreement process, consents, and waits on the signup page. User 2 then goes through to the consent page (the page with the checkboxes to consent to all the policies). User 1 then submits their signup page. When User 2 clicks next, they will be taken back to the front page instead of the signup page.
It looks like the presignup cache is being being cleared on the 'createduser' event - any user. This removes the policy viewed/accepted states for EVERY session, causing the redirection.
I have a PR at https://github.com/saylordotorg/moodle/pull/1 that appears to fix the issue - multiple users are able to sign up and the full policy flow is restored if a user creates an account (ignores the confirmation email and doesn't log in) and tries to create a new account again during the same session.
- has been marked as being related by
-
MDL-61707 Pre-signup (minor check) session is not deleted upon signup
- Closed
- is duplicated by
-
MDL-63782 When attempting to sign up for an account you are returned to the age and location verification page
- Closed
- will be (partly) resolved by
-
MDL-63203 tool_policy should not use MUC for session storage
- Open