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
6541b455
Commit
6541b455
authored
Nov 01, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1572 from edx/talbs/fix-studio-forgotpassword
Studio: Fix - Forgot Password Modal
parents
5de54dc5
8048a4b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
cms/djangoapps/contentstore/views/public.py
+1
-1
lms/templates/login.html
+5
-0
No files found.
cms/djangoapps/contentstore/views/public.py
View file @
6541b455
...
@@ -38,7 +38,7 @@ def login_page(request):
...
@@ -38,7 +38,7 @@ def login_page(request):
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
return
render_to_response
(
'login.html'
,
{
return
render_to_response
(
'login.html'
,
{
'csrf'
:
csrf_token
,
'csrf'
:
csrf_token
,
'forgot_password_link'
:
"//{base}/#forgot-password-modal"
.
format
(
base
=
settings
.
LMS_BASE
),
'forgot_password_link'
:
"//{base}/
login
#forgot-password-modal"
.
format
(
base
=
settings
.
LMS_BASE
),
})
})
...
...
lms/templates/login.html
View file @
6541b455
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
).
addClass
(
view_name
);
$
(
'body'
).
addClass
(
'js'
).
addClass
(
view_name
);
// show forgot password modal UI if URL contains matching DOM ID
if
(
$
.
deparam
.
fragment
()[
'forgot-password-modal'
]
!==
undefined
)
{
$
(
'.pwd-reset'
).
click
();
}
// new window/tab opening
// new window/tab opening
$
(
'a[rel="external"], a[class="new-vp"]'
)
$
(
'a[rel="external"], a[class="new-vp"]'
)
.
click
(
function
()
{
.
click
(
function
()
{
...
...
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