Changeset 8760 for mauRepo


Ignore:
Timestamp:
02/04/13 17:42:53 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22698: [CEDA Site Python Port] MyCEDA Login needs to be more user-friendly
 http://team.ceda.ac.uk/trac/ceda/ticket/22698
Incomplete - # 22689: [CEDA Site Python Port] Logout link
 http://team.ceda.ac.uk/trac/ceda/ticket/22689

Location:
mauRepo/dj_security/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/README

    r8680 r8760  
    28286) FAKE_RESPONSE (optional): if set to 'True' returns a fake authentication cookies. 
    2929Only for development purposes. 
    30    
     30 
     31 
     32Application layout is based on Mezzanine and has its core in the cedatheme_mf54 module. 
     33Here the cedatheme_mf54.templates.pages.dropdown.html has been modified in order to include 
     34 login/logout buttons. Such buttons require some parameters to be visible/enabled and as such  
     35 have to be passed to the django rendering context. 
     36----> LOGOUT 
     37- accountid: if present the LOGOUT button appears 
     38- home: is used by a {%url home%} to redirect the user after the logout  
     39     
  • mauRepo/dj_security/trunk/dj_security/views/dj_security_login.py

    r8748 r8760  
    127127        redirect_field_name=REDIRECT_FIELD_NAME, openid_form=OpenidSigninForm, 
    128128        auth_form=CedaUserAuthenticationBackend,  
    129         on_failure=None, extra_context=None): 
     129        on_failure=None, extra_context={'is_login_page': True}): 
    130130    """Signin page. It manage the legacy authentification (user/password)   
    131131    and authentification with openid. 
  • mauRepo/dj_security/trunk/setup.py

    r8759 r8760  
    5656                        'cedatheme_mf54', 
    5757                        'django-authopenid==1.0.1', 
    58                         'userdb_model'], 
     58                        'userdb_model', 
     59                        'lxml'], 
    5960     package_data=package_data,  
    6061) 
Note: See TracChangeset for help on using the changeset viewer.