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
05baddb2
Commit
05baddb2
authored
Apr 30, 2015
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add remember me checkbox back to the combined login/registration page
parent
22d818e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
+29
-1
lms/static/sass/views/_login-register.scss
+9
-0
openedx/core/djangoapps/user_api/tests/test_views.py
+12
-1
openedx/core/djangoapps/user_api/views.py
+8
-0
No files found.
lms/static/sass/views/_login-register.scss
View file @
05baddb2
...
...
@@ -220,6 +220,11 @@ $sm-btn-linkedin: #0077b5;
font-weight: 500;
}
#login-remember {
line-height: 0;
height: auto;
}
label {
display: block;
margin: 0 0 6px 0;
...
...
@@ -239,6 +244,10 @@ $sm-btn-linkedin: #0077b5;
vertical-align: top;
}
&[for="login-remember"] {
display: inline-block;
}
a {
font-family: $sans-serif;
}
...
...
openedx/core/djangoapps/user_api/tests/test_views.py
View file @
05baddb2
...
...
@@ -646,7 +646,18 @@ class LoginSessionViewTest(ApiTestCase):
"max_length"
:
PASSWORD_MAX_LENGTH
},
"errorMessages"
:
{},
}
},
{
"name"
:
"remember"
,
"defaultValue"
:
False
,
"type"
:
"checkbox"
,
"required"
:
False
,
"label"
:
"Remember me"
,
"placeholder"
:
""
,
"instructions"
:
""
,
"restrictions"
:
{},
"errorMessages"
:
{},
},
])
def
test_login
(
self
):
...
...
openedx/core/djangoapps/user_api/views.py
View file @
05baddb2
...
...
@@ -102,6 +102,14 @@ class LoginSessionView(APIView):
}
)
form_desc
.
add_field
(
"remember"
,
field_type
=
"checkbox"
,
label
=
_
(
"Remember me"
),
default
=
False
,
required
=
False
,
)
return
HttpResponse
(
form_desc
.
to_json
(),
content_type
=
"application/json"
)
@method_decorator
(
require_post_params
([
"email"
,
"password"
]))
...
...
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