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
202edb0e
Commit
202edb0e
authored
Aug 23, 2012
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making password reset email link have the current site's domain rather than edx.org hardcoded.
parent
afa67599
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/djangoapps/student/views.py
+1
-1
lms/templates/registration/password_reset_email.html
+1
-1
No files found.
common/djangoapps/student/views.py
View file @
202edb0e
...
...
@@ -511,7 +511,7 @@ def password_reset(request):
form
.
save
(
use_https
=
request
.
is_secure
(),
from_email
=
settings
.
DEFAULT_FROM_EMAIL
,
request
=
request
,
domain_override
=
settings
.
SITE_NAME
)
domain_override
=
request
.
get_host
()
)
return
HttpResponse
(
json
.
dumps
({
'success'
:
True
,
'value'
:
render_to_string
(
'registration/password_reset_done.html'
,
{})}))
else
:
...
...
lms/templates/registration/password_reset_email.html
View file @
202edb0e
...
...
@@ -3,7 +3,7 @@
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
https://
www.edx.org
{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
https://
{{domain}}
{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
...
...
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