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
b42eacaa
Commit
b42eacaa
authored
Jul 17, 2013
by
ihoover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved MAX_AUTO_AUTH_USERS to ENV_TOKENS
parent
ee4bc424
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
common/djangoapps/student/views.py
+1
-4
lms/envs/aws.py
+2
-0
lms/envs/common.py
+0
-3
No files found.
common/djangoapps/student/views.py
View file @
b42eacaa
...
@@ -929,10 +929,7 @@ def auto_auth(request):
...
@@ -929,10 +929,7 @@ def auto_auth(request):
name_base
=
'USER_'
name_base
=
'USER_'
pass_base
=
'PASS_'
pass_base
=
'PASS_'
max_users
=
200
max_users
=
settings
.
MITX_FEATURES
.
get
(
'MAX_AUTO_AUTH_USERS'
,
200
)
if
hasattr
(
settings
,
'MAX_AUTO_AUTH_USERS'
):
max_users
=
settings
.
MAX_AUTO_AUTH_USERS
number
=
random
.
randint
(
1
,
max_users
)
number
=
random
.
randint
(
1
,
max_users
)
username
=
name_base
+
str
(
number
)
username
=
name_base
+
str
(
number
)
...
...
lms/envs/aws.py
View file @
b42eacaa
...
@@ -180,6 +180,8 @@ COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", [])
...
@@ -180,6 +180,8 @@ COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", [])
# automatic log in for load testing
# automatic log in for load testing
MITX_FEATURES
[
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
]
=
ENV_TOKENS
.
get
(
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
)
MITX_FEATURES
[
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
]
=
ENV_TOKENS
.
get
(
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
)
MITX_FEATURES
[
'MAX_AUTO_AUTH_USERS'
]
=
ENV_TOKENS
.
get
(
'MAX_AUTO_AUTH_USERS'
)
############################## SECURE AUTH ITEMS ###############
############################## SECURE AUTH ITEMS ###############
# Secret things: passwords, access keys, etc.
# Secret things: passwords, access keys, etc.
...
...
lms/envs/common.py
View file @
b42eacaa
...
@@ -37,9 +37,6 @@ PLATFORM_NAME = "edX"
...
@@ -37,9 +37,6 @@ PLATFORM_NAME = "edX"
COURSEWARE_ENABLED
=
True
COURSEWARE_ENABLED
=
True
ENABLE_JASMINE
=
False
ENABLE_JASMINE
=
False
# only relevant if MITX_FEATURES['AUTOMATIC_AUTH_FOR_LOAD_TESTING'] = True
MAX_AUTO_AUTH_USERS
=
200
PERFSTATS
=
False
PERFSTATS
=
False
DISCUSSION_SETTINGS
=
{
DISCUSSION_SETTINGS
=
{
...
...
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