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
cf549df5
Commit
cf549df5
authored
Jul 23, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #289 from MITx/dormsbee/hack_fix_pwd_reset
Dormsbee/hack fix pwd reset
parents
749740eb
f2281052
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
cms/envs/common.py
+3
-3
common/djangoapps/student/views.py
+2
-1
lms/envs/common.py
+4
-4
No files found.
cms/envs/common.py
View file @
cf549df5
...
@@ -132,10 +132,10 @@ IGNORABLE_404_ENDS = ('favicon.ico')
...
@@ -132,10 +132,10 @@ IGNORABLE_404_ENDS = ('favicon.ico')
# Email
# Email
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
DEFAULT_FROM_EMAIL
=
'registration@
mitx.mit.edu
'
DEFAULT_FROM_EMAIL
=
'registration@
edx.org
'
DEFAULT_FEEDBACK_EMAIL
=
'feedback@
mitx.mit.edu
'
DEFAULT_FEEDBACK_EMAIL
=
'feedback@
edx.org
'
ADMINS
=
(
ADMINS
=
(
(
'
MITx Admins'
,
'admin@mitx.mit.edu
'
),
(
'
edX Admins'
,
'admin@edx.org
'
),
)
)
MANAGERS
=
ADMINS
MANAGERS
=
ADMINS
...
...
common/djangoapps/student/views.py
View file @
cf549df5
...
@@ -402,7 +402,8 @@ def password_reset(request):
...
@@ -402,7 +402,8 @@ def password_reset(request):
if
form
.
is_valid
():
if
form
.
is_valid
():
form
.
save
(
use_https
=
request
.
is_secure
(),
form
.
save
(
use_https
=
request
.
is_secure
(),
from_email
=
settings
.
DEFAULT_FROM_EMAIL
,
from_email
=
settings
.
DEFAULT_FROM_EMAIL
,
request
=
request
)
request
=
request
,
domain_override
=
settings
.
SITE_NAME
)
return
HttpResponse
(
json
.
dumps
({
'success'
:
True
,
return
HttpResponse
(
json
.
dumps
({
'success'
:
True
,
'value'
:
render_to_string
(
'registration/password_reset_done.html'
,
{})}))
'value'
:
render_to_string
(
'registration/password_reset_done.html'
,
{})}))
else
:
else
:
...
...
lms/envs/common.py
View file @
cf549df5
...
@@ -158,17 +158,17 @@ TEMPLATE_DEBUG = False
...
@@ -158,17 +158,17 @@ TEMPLATE_DEBUG = False
# Site info
# Site info
SITE_ID
=
1
SITE_ID
=
1
SITE_NAME
=
"
localhost:8000
"
SITE_NAME
=
"
edx.org
"
HTTPS
=
'on'
HTTPS
=
'on'
ROOT_URLCONF
=
'lms.urls'
ROOT_URLCONF
=
'lms.urls'
IGNORABLE_404_ENDS
=
(
'favicon.ico'
)
IGNORABLE_404_ENDS
=
(
'favicon.ico'
)
# Email
# Email
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
DEFAULT_FROM_EMAIL
=
'registration@
mitx.mit.edu
'
DEFAULT_FROM_EMAIL
=
'registration@
edx.org
'
DEFAULT_FEEDBACK_EMAIL
=
'feedback@
mitx.mit.edu
'
DEFAULT_FEEDBACK_EMAIL
=
'feedback@
edx.org
'
ADMINS
=
(
ADMINS
=
(
(
'
MITx Admins'
,
'admin@mitx.mit.edu
'
),
(
'
edX Admins'
,
'admin@edx.org
'
),
)
)
MANAGERS
=
ADMINS
MANAGERS
=
ADMINS
...
...
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