Commit Graph

358 Commits

Author SHA1 Message Date
bmedx
63dcaa4695 Add a model and associated API to help control the user retirement flow 2018-04-19 13:56:42 -04:00
Sanford Student
9e482553c1 EDUCATOR-2628: deactivate and logout user 2018-04-18 11:32:31 -04:00
Alex Dusenbery
f6997f2842 Remove unused imports in user_api.models 2018-04-17 10:03:05 -04:00
Bill DeRusha
d1ed33ac23 Update and refactor random password generator 2018-04-13 14:17:21 -04:00
Jeremy Bowman
9ca9aa44c6 PLAT-2060 Use pip-tools to manage requirements files (take 2)
This reverts commit a7fa0c211d.
2018-04-12 17:22:48 -04:00
Feanil Patel
a7fa0c211d Revert "PLAT-2060 Use pip-tools to manage requirements files" 2018-04-10 12:54:41 -04:00
Jeremy Bowman
432347b881 PLAT-2060 Use pip-tools to manage requirements files 2018-04-09 17:07:02 -04:00
Gregory Martin
49a82cc397 Merge pull request #17860 from edx/yro/EDUCATOR-2333
Delete visual_progress_enabled waffle flag.
2018-04-06 15:55:32 -04:00
Brian Mesick
5782119341 Merge pull request #17867 from edx/bmedx/registration_deadlocks
WIP: Refactor registration to improve reliability
2018-04-06 15:24:13 -04:00
Gregory Martin
62775c891a Delete visual_progress_enabled waffle flag.
https://openedx.atlassian.net/browse/EDUCATOR-2333
2018-04-06 15:07:16 -04:00
bmedx
65147386c0 PLAT-2028 - Create mailing list retirement API endpoint
- Removes "email-optin" UserOrgTags for the user
- Creates and uses a new "UserRetireMailingsSignal" signal
- Creates and uses a new "CanRetireUser" permission
- Creates and uses a new setting "RETIREMENT_SERVICE_WORKER_USERNAME"
- Creates a signal handler to globally opt-out the user from Sailthru
2018-04-05 15:52:26 -04:00
bmedx
634234966a WIP: Refactor registration to improve reliability 2018-04-05 15:11:41 -04:00
Waheed Ahmed
20e7a15ac6 Fix enabling debug allows api access without authentication.
LEARNER-1220
2018-04-04 12:54:52 +05:00
Brian Mesick
4841ff7943 Merge pull request #17790 from edx/bmedx/user_retirement_utils
Add some common functionality for retiring users
2018-04-02 14:41:52 -04:00
bmedx
b26d7913f5 Add some common functionality for retiring users
- Methods for getting hashed retired users and usernames
- A DRF permission for retiring users
2018-04-02 13:48:52 -04:00
Diana Huang
6ceb7e1500 Update TOS and Privacy Policy field on registration from for GDPR. 2018-04-02 10:01:18 -04:00
Michael Terry
a576d682ff Improve password complexity messaging
Send password form instructions that include password complexity and
also send error messages back that include all parts of the
complexity instead of single parts at a time.

And clean up phrasing to be more consistent.
2018-03-21 10:29:53 -04:00
Michael Terry
abc42ec236 Send password requirements to mobile
We have a registration endpoint that sends all the information the mobile
app needs to render a form, including password requirements. But it wasn't
sending complexity information before (e.g. 1 uppercase letter).

Now it does!
2018-03-20 12:54:05 -04:00
Michael Terry
97a938ccd5 Fix formatting of error
Makes it more readable (rather than a repr string)
2018-03-16 15:34:47 -04:00
Michael Terry
a0c6f66252 Check policy during pw live validation
The password live validation was not considering the full password
complexity settings. This branch hooks that up and refactors the
various ways to validate a password to all go through the same code
path.

LEARNER-4502
LEARNER-4504
2018-03-16 09:23:43 -04:00
Sanford Student
6f5c49e7b6 guard against missing setting 2018-03-07 15:49:44 -05:00
Gregory Martin
a5d8cbb8e9 Add "last completed block" to dropdown 2018-03-07 10:58:59 -05:00
Jeremy Bowman
b3ac2b1b06 PLAT-1976 Add waffle switch to block auth_user write attempts 2018-02-28 13:13:06 -05:00
Adeel Khan
136b914d86 Fixes error caused by invalid Anonymous User passed to a view.
This patch would fix the case when an anonymous object is
getting passed to view causing "TypeError: int() argument must
be a string or a number, not 'AnonymousUser'" exception. Applying a
permission class would force user to be an authenticated
user otherwise would get a 403 response.

LEARNER-4162
2018-02-14 13:25:38 +05:00
Jeremy Bowman
bf86b3da98 PLAT-1942 Handle xmodule_django field deprecations 2018-02-05 15:05:54 -05:00
Jeremy Bowman
5289c7e828 PLAT-1915 Stop using deprecated BaseException.message 2018-01-31 17:22:01 -05:00
Qubad786
64555c60c0 Move request_cache to openedx.core.djangoapps 2018-01-26 15:09:25 +05:00
bmedx
1d45c85135 Refactor student login for readability and fix Django 1.11 issues 2018-01-24 11:26:43 -05:00
Michael Terry
948cae4148 Fix crash using create_user
Fix an invalid import usage to avoid a crash with the management
command create_user.

LEARNER-3932
2018-01-22 13:46:35 -05:00
Jeremy Bowman
669aa13ad6 PLAT-1873 to_deprecated_string() cleanup part 2 2018-01-08 17:26:55 -05:00
asadiqbal
5d92b42fe3 UI Updates to Support Ent Data Synchronization 2018-01-05 17:16:02 +05:00
Jeremy Bowman
bd9c7a082e PLAT-1863 Fixes for LMS shards 2 and 3 tests under Django 1.9 2017-12-22 16:53:01 -05:00
Bessie Steinberg
b340174e12 Add Job Title field to Registration Page
Add 'Job Title' as configurable field on the registration page.
Job Title will be saved to the 'meta' field of the 'userprofile' table.
2017-12-18 16:20:11 -05:00
Saleem Latif
86da9c1c63 Disable linking of personal accounts to enterprise customers via SSO 2017-12-18 15:12:42 +05:00
Bill Filler
dd4d13af5f Merge pull request #16611 from edx/afzaledx/WL-1219
Added extended profile fields to the Account settings page.
2017-12-13 08:48:06 -05:00
Brian Mesick
44703269b5 Merge pull request #16814 from edx/bmedx/course_lang_bulk_update_cmd
Add command to bulk move user language prefs from one code to another
2017-12-11 16:53:31 -05:00
Afzal Wali
f589dc9d29 WL-1219
Added extended profile fields to the Account settings page.
2017-12-11 18:42:59 +05:00
Diana Huang
8752480aac Merge pull request #16829 from edx/diana/registration-form-improvements
LEARNER-3469 - More registration form cleanup.
2017-12-08 13:00:20 -05:00
Diana Huang
0ecc0558a3 More registration form cleanup. 2017-12-08 09:39:01 -05:00
uzairr
8ffac2061d Verify 'Full Name' field does not allow HTML in Signup form
'Full Name' field in the signup form is allowing HTML as an input
which makes spoofing easily.To avoid it, validation is added
that will ensure 'Full Name' field does not allow HTML.

LEARNER-3385
2017-12-08 19:18:18 +05:00
bmedx
6294baf456 Add command to bulk move user language prefs from one code to another 2017-12-07 15:06:09 -05:00
Uzair Rasheed
6b146db12b Merge pull request #16690 from edx/LEARNER-3337/validate-username-field
Verify 'Full Name' field does not allow HTML.
2017-12-06 14:29:57 +05:00
Jeremy Bowman
103c723c6d PLAT-1801 Preserve new user login behavior under Django 1.10+ 2017-12-05 10:20:25 -05:00
uzairr
333e3315cb Verify 'Full Name' field does not allow HTML.
'Full Name' field in the student account settings is allowing HTML
as an input which makes spoofing easily.To avoid it, validation is
added that ensures 'Full Name' field does not allow HTML as input.

LEARNER-3337
2017-12-05 13:33:30 +00:00
Brian Mesick
167b28302c Merge pull request #16704 from edx/revert-15511-proversity/add-recover-password-endpoint
Revert "Add recover password endpoint"
2017-11-29 11:49:15 -05:00
Diana Huang
8693f2fd38 UX updates to registration form.
- hide optional fields by default.
- instructions only shown when focused in.
- removed header
- Terms of service link and checkbox on same line.
2017-11-29 09:46:54 -05:00
Brian Beggs
845e64cd78 Revert "Add recover password endpoint" 2017-11-29 09:44:10 -05:00
Jose Antonio Gonzalez
93464298e4 Merge remote-tracking branch 'upstream/master' into proversity/add-recover-password-endpoint [ci skip] 2017-11-27 10:28:32 -06:00
Jose Antonio Gonzalez
2e45a9b136 Merge remote-tracking branch 'upstream/master' into proversity/add-recover-password-endpoint [ci skip] 2017-11-24 13:13:44 +02:00
bmedx
d827d47b48 Tag LMS Unit 2 tests that fail in Django 1.11 2017-11-22 15:47:22 -05:00