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

Uses billing email when checking for Moodle user, but user email when creating a new Moodle user #4

Closed
lukecarbis opened this issue Oct 6, 2015 · 1 comment

Comments

@lukecarbis
Copy link

Just spent a fair bit of time trying to understand why Moodle users weren't being created when I tested my checkout.

The reason is that Moowoodle uses the billing email provided when checking if the user exists... e.g:

core_user_get_users_by_field: 'email', 'example@foo.bar'

When Moodle returns that no such user exists, Moowoodle attempts to create the user. Only, rather than submitting the same billing email address and user details, it sends the WordPress user details which may be different. In my case, they were. The billing email was different to the WordPress user email.

And when Moowoodle attempts to create the user, the user is either created with the wrong email address, or if the user already exists, an error is returned. This means no enrolment.

The hardest part of this is that it fails silently.

@sumandualcube
Copy link

Fixed

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

2 participants