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
cfa13922
Commit
cfa13922
authored
Feb 15, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change url for login from login to signin.
parent
5acf9cb3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
cms/djangoapps/contentstore/views.py
+6
-0
cms/envs/common.py
+2
-2
cms/templates/activation_active.html
+1
-1
cms/templates/activation_complete.html
+1
-1
cms/urls.py
+2
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
cfa13922
...
...
@@ -59,6 +59,7 @@ from cms.djangoapps.models.settings.course_details import CourseDetails,\
from
cms.djangoapps.models.settings.course_grading
import
CourseGradingModel
from
cms.djangoapps.contentstore.utils
import
get_modulestore
from
lxml
import
etree
from
django.shortcuts
import
redirect
# to install PIL on MacOSX: 'easy_install http://dist.repoze.org/PIL-1.1.6.tar.gz'
...
...
@@ -81,6 +82,11 @@ def signup(request):
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
return
render_to_response
(
'signup.html'
,
{
'csrf'
:
csrf_token
})
def
old_login_redirect
(
request
):
'''
Redirect to the active login url.
'''
return
redirect
(
'login'
,
permanent
=
True
)
@ssl_login_shortcut
@ensure_csrf_cookie
...
...
cms/envs/common.py
View file @
cfa13922
...
...
@@ -74,8 +74,8 @@ TEMPLATE_DIRS = MAKO_TEMPLATES['main']
MITX_ROOT_URL
=
''
LOGIN_REDIRECT_URL
=
MITX_ROOT_URL
+
'/
log
in'
LOGIN_URL
=
MITX_ROOT_URL
+
'/
log
in'
LOGIN_REDIRECT_URL
=
MITX_ROOT_URL
+
'/
sign
in'
LOGIN_URL
=
MITX_ROOT_URL
+
'/
sign
in'
TEMPLATE_CONTEXT_PROCESSORS
=
(
...
...
cms/templates/activation_active.html
View file @
cfa13922
...
...
@@ -7,7 +7,7 @@
<section
class=
"activation"
>
<h1>
Account already active!
</h1>
<p>
This account has already been activated.
<a
href=
"/
log
in"
>
Log in here
</a>
.
</p>
<p>
This account has already been activated.
<a
href=
"/
sign
in"
>
Log in here
</a>
.
</p>
</div>
</section>
...
...
cms/templates/activation_complete.html
View file @
cfa13922
...
...
@@ -5,7 +5,7 @@
<section
class=
"tos"
>
<div>
<h1>
Activation Complete!
</h1>
<p>
Thanks for activating your account.
<a
href=
"/
log
in"
>
Log in here
</a>
.
</p>
<p>
Thanks for activating your account.
<a
href=
"/
sign
in"
>
Log in here
</a>
.
</p>
</div>
</section>
...
...
cms/urls.py
View file @
cfa13922
...
...
@@ -85,7 +85,8 @@ urlpatterns += (
url
(
r'^activate/(?P<key>[^/]*)$'
,
'student.views.activate_account'
,
name
=
'activate'
),
# form page
url
(
r'^login$'
,
'contentstore.views.login_page'
,
name
=
'login'
),
url
(
r'^login$'
,
'contentstore.views.old_login_redirect'
,
name
=
'old_login'
),
url
(
r'^signin$'
,
'contentstore.views.login_page'
,
name
=
'login'
),
# ajax view that actually does the work
url
(
r'^login_post$'
,
'student.views.login_user'
,
name
=
'login_post'
),
...
...
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