Changeset 8203


Ignore:
Timestamp:
12/20/10 18:28:35 (8 years ago)
Author:
Eric
Message:

bug 2069 : Perform all possible rules on logon check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/main.inc.php

    r8202 r8203  
    6161    { 
    6262      /* User non case sensitive */ 
    63       if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true') 
     63      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'false') 
    6464      { 
    6565        // For testing only // $new_username = LCAS_SearchCaseUsername($_POST['username']); 
     
    6969 
    7070      /* User non accent sensitive */ 
    71       if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 
     71      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 
    7272      { 
    7373        $new_username = LCAS_change_case($_POST['username'], 2); 
     74        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 
     75      } 
     76 
     77      /* User non accent sensitive */ 
     78      if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true' and isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true') 
     79      { 
     80        $new_username = LCAS_change_case($_POST['username'], 3); 
    7481        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username; 
    7582      } 
Note: See TracChangeset for help on using the changeset viewer.