Changeset 8715 for mauRepo


Ignore:
Timestamp:
07/01/13 12:36:30 (7 years ago)
Author:
mnagni
Message:

Corrects a wrong COOKIE_DOMAIN_PAR in settings.py

Location:
mauRepo/dj_security/trunk/dj_security
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/dj_security/middleware.py

    r8714 r8715  
    119119                % (user.userkey, getattr("user", "accountid", "NotAssigned")))                
    120120    LOGGER.info("Created authTicket for %s from %s" % (username, remote_ip)) 
     121    idomain = getattr(settings, 'COOKIE_DOMAIN', None) 
    121122    response.set_cookie('auth_tkt',  
    122123                        token.cookie_value(),  
    123                         domain = getattr(settings, 'COOKIE_DOMAIN', None)) 
    124     LOGGER.debug("Set authTicket in response for %s from %s"  
    125                  % (username, remote_ip)) 
     124                        domain = idomain) 
     125    LOGGER.debug("Set authTicket in response for %s from %s to domain %s"  
     126                 % (username, remote_ip, idomain)) 
    126127    return response 
  • mauRepo/dj_security/trunk/dj_security/settings.py

    r8713 r8715  
    166166if APPLICATION_ROOT.startswith('PROJECT_NAME_'): 
    167167    APPLICATION_ROOT = '' 
    168 COOKIE_DOMAIN = 'COOKIE_DOMAIN_PAR/' 
     168COOKIE_DOMAIN = 'COOKIE_DOMAIN_PAR' 
    169169if COOKIE_DOMAIN.startswith('COOKIE_DOMAIN_'): 
    170170    COOKIE_DOMAIN = 'uk' 
  • mauRepo/dj_security/trunk/dj_security/views/dj_security_login.py

    r8712 r8715  
    7878    redirect_parameter = getattr(settings, 'REDIRECT_URL', 'r') 
    7979    context['redirect_url'] = \ 
    80         base64.b64decode(request.session.get(redirect_parameter, ''))     
     80        base64.b64decode(request.session.get(redirect_parameter, '')) 
     81    LOGGER.debug("Redirecting to %s" % (context['redirect_url']))    
    8182    return render_to_response('logged_in.html', context) 
Note: See TracChangeset for help on using the changeset viewer.