Ignore:
Timestamp:
Feb 10, 2011, 9:31:02 PM (13 years ago)
Author:
LucMorizur
Message:

LCAS takes completely care for case sensitivity: $confinsensitive_case_logon set to false by LCAS

File:
1 edited

Legend:

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

    r8638 r9158  
    6363
    6464  $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']);
     65 
     66  // Set $conf['insensitive_case_logon'] to false, as LCAS takes completely
     67  // in charge everything around the case and the accents
     68  $conf['insensitive_case_logon'] = false;
    6569 
    6670/* User identification */
    6771  if (script_basename() == 'identification')
    6872  {
    69     if (isset($_POST['username']) and isset($conf_LCAS[0]))
     73    if (isset($_POST['username']) and isset($conf_LCAS[1]))
    7074    {
    71       $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[0]);
     75      $new_username = LCAS_SearchCaseUsername($_POST['username'],$conf_LCAS[1]);
    7276      $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    7377    }
     
    8791  load_language('plugin.lang', LCAS_PATH);
    8892
    89   if (isset($conf_LCAS[0]))
    90    $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'], $conf_LCAS[0], false);
     93  if (isset($conf_LCAS[1]))
     94   $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'], $conf_LCAS[1]);
    9195 
    9296  if (isset($NewPostLogin) and get_userid($NewPostLogin))
Note: See TracChangeset for help on using the changeset viewer.