moved MAX_AUTO_AUTH_USERS to ENV_TOKENS

This commit is contained in:
ihoover
2013-07-17 10:00:24 -04:00
parent ee4bc424ce
commit b42eacaa8f
3 changed files with 3 additions and 7 deletions

View File

@@ -929,10 +929,7 @@ def auto_auth(request):
name_base = 'USER_'
pass_base = 'PASS_'
max_users = 200
if hasattr(settings, 'MAX_AUTO_AUTH_USERS'):
max_users = settings.MAX_AUTO_AUTH_USERS
max_users = settings.MITX_FEATURES.get('MAX_AUTO_AUTH_USERS', 200)
number = random.randint(1, max_users)
username = name_base + str(number)