Commit Graph

314 Commits

Author SHA1 Message Date
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
Ned Batchelder
e23e3a0486 Fix a number of unused-import pylint violations 2017-11-21 19:57:06 -05:00
Jose Antonio Gonzalez
bc16a70c63 Add recover password endpoint 2017-11-18 09:37:42 +02:00
John Eskew
f790766c26 Merge pull request #16548 from edx/jeskew/more_mgmt_cmd_conv_from_optparse
Move more mgmt commands from optparse to argparse.
2017-11-14 12:29:57 -05:00
John Eskew
27315f442a Move more mgmt commands from optparse to argparse. 2017-11-14 11:26:46 -05:00
bmedx
09e5156543 Remove use of non-relational fields in select_related queries
These changes should not change the actual queries at all, and those
will throw errors in Django 1.11.
2017-11-14 10:10:08 -05:00
bmedx
68e3894c17 openedx urls cleanup for Django 1.11
- Remove usage of django.urls.patterns
- Change urls tuples to lists
- Make all string view names callables
2017-11-03 16:11:41 -04:00
bmedx
82cb62d26a syncdb cleanup 2017-11-02 09:51:44 -04:00
Troy Sankey
d76a1ac014 Tests should make use of django test client's PATCH functionality
Previously, these tests were skipped in order to support Django 1.4.
2017-10-05 15:37:00 -04:00
John Eskew
8b5b1eba86 Use Django 1.11 compatible version of django-countries. 2017-10-05 11:12:51 -04:00
bmedx
cfd77f61f6 Update raw sql that uses datetimes to be Django 1.9 compatible 2017-09-29 11:33:28 -04:00
Ned Batchelder
f8f911ae5c Have to format lazily for translated constant messages 2017-09-26 11:39:36 -04:00
Alex Dusenbery
42829bd272 EDUCATOR-1103 | Restrict the number of courses to run a single opt-in query for. 2017-09-19 15:27:54 -04:00
Ned Batchelder
253c6fba24 Have to use ugettext_lazy for import-time translations 2017-09-19 14:11:05 -04:00
Jeremy Bowman
97f5fe035b Fixes for pytest database usage 2017-09-06 13:15:34 -04:00
Jeremy Bowman
ae44f1840c Merge pull request #15951 from edx/jmbowman/ddt_cleanup
ddt usage cleanup
2017-09-06 11:19:39 -04:00
Jeremy Bowman
fd6af6b05e ddt usage cleanup 2017-09-05 17:25:51 -04:00
Harry Rein
d36304dc25 Allow social usernames to contain periods.
LEARNER-2453
2017-09-05 10:48:41 -04:00
Brittney Exline
c79be5bbc1 Merge pull request #15929 from edx/bexline/clean_saml_usernames
ENT-619 Clean usernames coming from identity providers
2017-08-31 13:09:42 -04:00
Brittney Exline
716a608f76 adding suggested test case 2017-08-31 10:56:07 -04:00
Bessie Steinberg
b1c7cdf415 Add profession & specialty fields to register page
The site configurations can now set 'Profession' and 'Specialty' as
fields on the registration page.  The list of potential professions and
specialties to choice from can also be set from the site configurations
by setting 'PROFESSION_OPTIONS' and 'SPECIALTY_OPTIONS'.

WL-1098
2017-08-30 14:20:11 -04:00
Brittney Exline
f844510b71 ENT-619 Clean usernames coming from identity providers
Since we have started integrating with more clients, we have found that the usernames
that get passed are not compatible with our username restrictions. This PR introduces
a function to clean usernames to make them compatible, particularly in the auto registration
case.
2017-08-30 13:36:57 -04:00
Jeremy Bowman
32000c7a98 Clean up TestCase subclassing 2017-08-29 15:38:48 -04:00
Harry Rein
9f88427f9b Add social links to learner profile.
LEARNER-1859

Added fields to add social links to the user account settings file.
Added icons to the user profile when these links are set, only shown
when users show their entire profile. Added jasmine tests for account
settings and learner profile pages. Added python unit tests to test
validation on the user account.
2017-08-29 13:53:08 -04:00
Diana Huang
40a5b066dc Merge pull request #15843 from edx/robrap/LEARNER-1858-show-join-date-2
Support for joined date to profile.
2017-08-22 15:43:49 -04:00
ayub-khan
e737728cde Updated Country Label and help text
Country Label was causing confusions for learners if it was country of origin or in which they
are living so changed it to a more appropriate message.
LEARNER-174
Also updated some other error messages to some more appropriate error messages.
2017-08-22 23:20:35 +05:00
Robert Raposa
7cc9400b91 Support for joined date to profile.
LEARNER-1858
2017-08-22 12:52:37 -04:00
cahrens
819a56fee3 Remove usages of deprecated SlashSeparatedCourseKey. 2017-08-14 11:01:00 -04:00
tasawernawaz
e6d552941d Remove Local Server Call on Logistration
LEARNER-966
2017-08-11 14:41:46 +05:00
edx-pipeline-bot
09c76a7b0f Merge pull request #15773 from edx/private_to_public_d28b140
Mergeback PR from private to public.
2017-08-08 17:19:12 -04:00
Christina Roberts
98dd14f21d Merge pull request #15770 from edx/christina/slash-the-slash
Remove usages of deprecated SlashSeparatedCourseKey.
2017-08-08 16:36:49 -04:00
Ahsan Ulhaq
cc65dff728 Host poisoning vulnerability fix
LEARNER-2172
2017-08-08 16:27:48 -04:00
cahrens
fd62164563 Remove usages of deprecated SlashSeparatedCourseKey. 2017-08-08 12:32:58 -04:00
Waheed Ahmed
e29c3fde35 Fix login page password min length restriction.
In the reset password flow one can enter a single character password and subsequently cannot login to the site as password complexity is apparently enforced on the login page. Login page should not enforce password complexity.

LEARNER-1209
2017-08-07 17:11:45 +05:00
George Song
f3faad7ebc Strip c from .pyc for error message comparison
In Python 2.7, `__file__` returns `.pyc` by default, this breaks our
comparison so let's strip out the trailing `c`.
2017-08-04 08:41:23 -07:00
Uman Shahzad
4b47d4af75 Fix broken test. 2017-08-03 00:22:25 +05:00
Uman Shahzad
cb034d4f2f Implement client-side registration form validation.
Input forms that need validation will have AJAX requests
performed to get validation decisions live.

All but a few important and common form fields perform
generic validation; these will need a back-end handler
in the future in order to have them validated through AJAX requests.

Information is conveyed on focus and blur for both
errors and successes.
2017-08-03 00:22:25 +05:00
Uman Shahzad
39ac333b5d Add backend AJAX API endpoint for client-side form validation.
In particular, implement a validation API for registration,
where a client makes AJAX calls to the endpoints requesting
validation decisions on each input. Responses are strings
dependent on the type of validation error; if no error,
then empty string to indicate OK.
2017-08-03 00:22:25 +05:00
Andy Armstrong
0f808cec78 Implement theme admin UI to support previewing
LEARNER-2017
2017-07-27 17:24:31 -04:00
George Song
5fca0521b2 Merge pull request #15538 from potsui/fix-duplicate-account-crash
Catch exception with duplicate username/email
2017-07-27 06:26:18 -07:00
Jesse Shapiro
91752ad98a Merge pull request #15624 from open-craft/haikuginger/remove-sso-consent
[ENT-491] Remove SSO consent features; verify fully-populated consent URL generation
2017-07-24 07:43:16 -04:00
Jesse Shapiro
fa9c09f9fe Remove Enterprise SSO hooks 2017-07-21 18:24:09 -04:00
Brittney Exline
6439020815 ENT-550 Display only TOS for enterprise's configured to skip registration
We have recently discovered that for any SSO Provider configured to skip
the registration form, we were auto checking the terms of service box,
which is a legal faux pas. Since IBM is planning to launch imminently and
is depending on this feature, we need to remedy this situation for enterprises
whose SSO Provider is configured to skip registration.

This PR hides all of the registration fields except TOS for this scenario
and disables the autoSubmit functionality that typically happens when skipping
registration.
2017-07-20 12:53:20 -04:00
Joshua Spayd
97d5e3d8e0 Remove password hiding test code 2017-07-17 22:52:15 +00:00
Joshua Spayd
433477abe4 Hide passwords in register/login crash reports
Includes code for testing to be removed in the next commit.
2017-07-17 22:45:35 +00:00