Changeset 8813


Ignore:
Timestamp:
10/09/13 20:54:13 (6 years ago)
Author:
mnagni
Message:

Reverted to 0.0.13 and moved to 0.0.14

Location:
mauRepo/dj_security_middleware/trunk/dj_security_middleware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security_middleware/trunk/dj_security_middleware/__init__.py

    r8811 r8813  
    2424    return getattr(settings, 'AUTH_TKT_NAME', 'auth_tkt') 
    2525 
    26 def cookie_domain(c_domain = None): 
     26def cookie_domain(): 
    2727    try: 
    28         return getattr(settings, 'COOKIE_DOMAIN', c_domain) 
     28        return getattr(settings, 'COOKIE_DOMAIN') 
    2929    except AttributeError: 
    3030        netloc = urlparse.urlparse(login_service()).netloc 
  • mauRepo/dj_security_middleware/trunk/dj_security_middleware/middleware.py

    r8807 r8813  
    165165                    shared_secret(),  
    166166                    request.COOKIES.get(auth_tkt_name(), ''),  
    167                     request.environ.get('REMOTE_ADDR')) 
     167                    _get_host_ip()) 
    168168        except BadTicket as ex: 
    169169            raise DJMiddlewareException(ex)  
Note: See TracChangeset for help on using the changeset viewer.