Changeset 8202


Ignore:
Timestamp:
Dec 20, 2010, 6:11:52 PM (14 years ago)
Author:
Eric
Message:

bug 2069 : Refactory with use of LCAS_change_case() function and add of accents sensitivity check on logon (tests under progress)

Location:
extensions/LCAS/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/include/functions.inc.php

    r8201 r8202  
    852852
    853853/**
    854  * Function called from main.inc.php - Returns username if existing lowercase username in database
     854 * Function called from main.inc.php - For test on username case sensitivity
     855 * Have to be deleted before first release build
    855856 *
    856857 * @param : $username typed in by user for identification
     
    859860 *
    860861 */
    861 function LCAS_SearchUsername($username)
     862/*function LCAS_SearchCaseUsername($username)
    862863{
    863864  global $conf;
     
    875876    return isset($username) ? $username : '';
    876877  }
    877 }
     878}*/
    878879
    879880
  • extensions/LCAS/trunk/main.inc.php

    r8201 r8202  
    6363      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true')
    6464      {
    65         $new_username =  LCAS_SearchUsername($_POST['username']);
     65        // For testing only // $new_username = LCAS_SearchCaseUsername($_POST['username']);
     66        $new_username = LCAS_change_case($_POST['username'], 1);
     67        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
     68      }
     69
     70      /* User non accent sensitive */
     71      if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true')
     72      {
     73        $new_username = LCAS_change_case($_POST['username'], 2);
    6674        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    6775      }
Note: See TracChangeset for help on using the changeset viewer.