Ignore:
Timestamp:
12/07/08 22:05:25 (3 years ago)
Author:
WanWizard
Message:

the authentication system now uses templates for login pages, so a new authentication method can supply it's own template with fields required for login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_info_panel/user_info_panel.php

    r2095 r2099  
    7979$variables['login_expiry']  = isset($_SESSION['login_expire']) ? time_system2local($_SESSION['login_expire']) : ""; 
    8080 
    81 // get which authentication to show 
    82 $variables['auth_methods'] = $GLOBALS['cms_authentication']->selected; 
    83 $variables['method_count'] = count($variables['auth_methods']); 
    84 $variables['auth_state'] = array(); 
    85 foreach($variables['auth_methods'] as $key => $method) { 
    86     if (isset($_SESSION['box_login'.$key])) { 
    87         $variables['auth_state'][] = $_SESSION['box_login'.$key] == 0 ? 1 : 0; 
    88     } else { 
    89         $variables['auth_state'][] = 1; 
    90     } 
    91 } 
     81// get the login templates to allow authentication 
     82$variables['auth_templates'] = $GLOBALS['cms_authentication']->get_templates("side"); 
    9283 
    9384// check if we need to display a registration link 
Note: See TracChangeset for help on using the changeset viewer.