From e29c3fde35f7432421d7515b80e0d22e813d2fdd Mon Sep 17 00:00:00 2001 From: Waheed Ahmed Date: Mon, 7 Aug 2017 17:06:33 +0500 Subject: [PATCH] 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 --- openedx/core/djangoapps/user_api/tests/test_views.py | 1 - openedx/core/djangoapps/user_api/views.py | 1 - 2 files changed, 2 deletions(-) diff --git a/openedx/core/djangoapps/user_api/tests/test_views.py b/openedx/core/djangoapps/user_api/tests/test_views.py index c3317506ed..c1009b0cf6 100644 --- a/openedx/core/djangoapps/user_api/tests/test_views.py +++ b/openedx/core/djangoapps/user_api/tests/test_views.py @@ -609,7 +609,6 @@ class LoginSessionViewTest(UserAPITestCase): "placeholder": "", "instructions": "", "restrictions": { - "min_length": PASSWORD_MIN_LENGTH, "max_length": PASSWORD_MAX_LENGTH }, "errorMessages": {}, diff --git a/openedx/core/djangoapps/user_api/views.py b/openedx/core/djangoapps/user_api/views.py index 5c94c2a34b..782139615d 100644 --- a/openedx/core/djangoapps/user_api/views.py +++ b/openedx/core/djangoapps/user_api/views.py @@ -98,7 +98,6 @@ class LoginSessionView(APIView): label=password_label, field_type="password", restrictions={ - "min_length": accounts.PASSWORD_MIN_LENGTH, "max_length": accounts.PASSWORD_MAX_LENGTH, } )