]> git.pld-linux.org Git - packages/mailman.git/commitdiff
- similar code style as mm itself
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Jun 2009 17:51:39 +0000 (17:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mailman-httpauth.patch -> 1.2

mailman-httpauth.patch

index c79a52fbafd77dd090cf8995a3e69f07976c73e1..7f8ce6564ad61ae45390ed58ed965a9ea15beeb5 100644 (file)
@@ -20,7 +20,7 @@ Maybe for security have USE_HTTP_AUTH = ['user1', 'user2']
  
  def check_global_password(response, siteadmin=True):
 +    if mm_cfg.USE_HTTP_AUTH:
-+        if os.getenv('AUTH_TYPE') != None and os.getenv('REMOTE_USER') != None:
++        if os.environ.get('AUTH_TYPE') != None and os.getenv('REMOTE_USER') != None:
 +            return True
 +        # Fallback to global password auth
 +
This page took 0.052387 seconds and 4 git commands to generate.