Block users from enrolling in a course if the user
is blocked by country access rules.
1) Enrollment via the login/registration page.
2) Enrollment from the marketing iframe (via student.views.change_enrollment)
3) Enrollment using 100% redeem codes.
4) Enrollment via upgrade.
This does NOT cover enrollment through third party authentication,
which is sufficiently complex to deserve its own commit.
Makes logistration available at /login and /register as well as /accounts/login/ and /accounts/register/. In addition:
- Adds support for redirect URLs in third party auth for combined login/registration page
- Adds support for external auth on the combined login/registration page
- Removes old login and registration acceptance tests
- Adds deprecation warnings to old login and register views
- Moves third party auth util to student_account
- Adds exception for microsites (theming)
Consolidate PUT and POST on the RESTful Layer.
Change URLs for API
Test cleanup.
Adding a course details URL to the enrollment API.
Change student to user
Change to v1, remove feature flag from API URLs
Updating student to user in tests
Re-ordering redirect urls to be evaluated last.
Adding pagination and testing.
Adding Django REST settings for pagination.
Revert "Re-ordering redirect urls to be evaluated last."
This reverts commit 4c9502daa383e49b46f8abec5456c271e5e24ccb.
Re-ordering redirect urls to be evaluated last.
Conflicts:
common/djangoapps/enrollment/urls.py
Revert "Adding Django REST settings for pagination."
This reverts commit 9f8a54c41f34caa24818c88f1e75ac59f6ce5259.
Conflicts:
common/djangoapps/enrollment/urls.py
Revert "Adding pagination and testing."
This reverts commit 0b2d46262abb78f5ad170700205e7fd28b6af942.
Additional testing, logging, and error messages.
Ensure window.isExternal is loaded
Don't set a default for terms of service
For paid courses, add the course to the cart and redirect to the shopping cart view.
Don't send form method and url as form data.
Stub window.analytics in the access view test.
Includes several bug fixes caught during test writing, general clean-up, and adds js-url, a lightweight URL parser
Moved to setting ajaxType with passed in method for models and now handling form load fail errors
Added tests.
Change third party auth login failure code to a 401, to detect authentication
success with no linked account.
If already authenticated, redirect immediately to the dashboard.
Use "Location" header correctly for 302 redirects from student views.
Add utility functions for simulating a running third-party auth pipeline.
Add a utility function for checking whether third party auth is enabled.
Respect default values sent by the server
The next step in the password reset process (confirmation) continues to be handled by student.views.password_reset_confirm_wrapper, a custom wrapper around Django's password reset confirmation view.
Add Python APIs for account/profile information to user_api
Updating profile page to have social linking
Authors: Renzo Lucioni, Alasdair Swan, Stephen Sanchez, Will Daly