Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
07148c63
Commit
07148c63
authored
Aug 25, 2015
by
Tasawer
Committed by
Tasawer Nawaz
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing experimental logistration endpoints
ECOM-1017
parent
40b5663b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
common/djangoapps/student/views.py
+0
-18
lms/urls.py
+0
-3
No files found.
common/djangoapps/student/views.py
View file @
07148c63
...
...
@@ -1021,24 +1021,6 @@ def change_enrollment(request, check_access=True):
return
HttpResponseBadRequest
(
_
(
"Enrollment action is invalid"
))
@never_cache
@ensure_csrf_cookie
def
accounts_login
(
request
):
"""Deprecated. To be replaced by :class:`student_account.views.login_and_registration_form`."""
external_auth_response
=
external_auth_login
(
request
)
if
external_auth_response
is
not
None
:
return
external_auth_response
redirect_to
=
get_next_url_for_login_page
(
request
)
context
=
{
'login_redirect_url'
:
redirect_to
,
'pipeline_running'
:
'false'
,
'pipeline_url'
:
auth_pipeline_urls
(
pipeline
.
AUTH_ENTRY_LOGIN
,
redirect_url
=
redirect_to
),
'platform_name'
:
settings
.
PLATFORM_NAME
,
}
return
render_to_response
(
'login.html'
,
context
)
# Need different levels of logging
@ensure_csrf_cookie
def
login_user
(
request
,
error
=
""
):
# pylint: disable=too-many-statements,unused-argument
...
...
lms/urls.py
View file @
07148c63
...
...
@@ -95,15 +95,12 @@ if settings.FEATURES["ENABLE_COMBINED_LOGIN_REGISTRATION"]:
{
'initial_mode'
:
'login'
},
name
=
"signin_user"
),
url
(
r'^register$'
,
'student_account.views.login_and_registration_form'
,
{
'initial_mode'
:
'register'
},
name
=
"register_user"
),
url
(
r'^accounts/login$'
,
'student_account.views.login_and_registration_form'
,
{
'initial_mode'
:
'login'
},
name
=
"accounts_login"
),
)
else
:
# Serve the old views
urlpatterns
+=
(
url
(
r'^login$'
,
'student.views.signin_user'
,
name
=
"signin_user"
),
url
(
r'^register$'
,
'student.views.register_user'
,
name
=
"register_user"
),
url
(
r'^accounts/login$'
,
'student.views.accounts_login'
,
name
=
"accounts_login"
),
)
if
settings
.
FEATURES
.
get
(
"ENABLE_CREDIT_API"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment