Changeset 2099 in ExiteCMS for trunk/login.php


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/login.php

    r2095 r2099  
    3939$variables['login_expiry']  = (iADMIN && isset($_SESSION['login_expire'])) ? time_system2local($_SESSION['login_expire']) : ""; 
    4040 
    41 // get which authentication to show 
    42 $variables['auth_methods'] = explode(",",$settings['authentication_selected']); 
    43 $variables['method_count'] = count($variables['auth_methods']); 
    44 $variables['auth_state'] = array(); 
    45 foreach($variables['auth_methods'] as $key => $method) { 
    46     if (isset($_SESSION['box_login'.$key])) { 
    47         $variables['auth_state'][] = $_SESSION['box_login'.$key] == 0 ? 1 : 0; 
    48     } else { 
    49         $variables['auth_state'][] = 1; 
    50     } 
    51 } 
     41// get the login templates to allow authentication 
     42$variables['auth_templates'] = $GLOBALS['cms_authentication']->get_templates("body"); 
    5243 
    5344// check if we need to display a registration link 
Note: See TracChangeset for help on using the changeset viewer.