]> snippets.scripts.mit.edu Git - Scripts/git/.git/blobdiff - __init__.py
Scripts auth: don't activate on 127.0.0.1 either
[Scripts/git/.git] / __init__.py
index 73e7e88d4978a4933a071432dcb0c55b73d939cc..4d093137dce4e5c278ff26d71b381159ffbc894c 100644 (file)
@@ -129,7 +129,7 @@ def get_or_create_mit_user(username, ):
 
 def scripts_login(request, **kwargs):
     host = request.META['HTTP_HOST'].split(':')[0]
-    if host == 'localhost':
+    if host in ('localhost', '127.0.0.1'):
         return login(request, **kwargs)
     elif request.META['SERVER_PORT'] == '444':
         if request.user.is_authenticated():