Changeset 8201 for extensions


Ignore:
Timestamp:
Dec 20, 2010, 5:55:44 PM (14 years ago)
Author:
Eric
Message:

bug 2069 : Improving case sensitivity on logon. Works fine only for case sensitive not for accents at this time.

Location:
extensions/LCAS/trunk
Files:
2 edited

Legend:

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

    r8197 r8201  
    852852
    853853/**
    854  * Function called from main.inc.php - Returns exiting lowercase username in database
     854 * Function called from main.inc.php - Returns username if existing lowercase username in database
    855855 *
    856856 * @param : $username typed in by user for identification
    857857 *
    858  * @return : lowercase $username found in database
     858 * @return : $username found in database
    859859 *
    860860 */
     
    871871LIMIT 1;";
    872872
    873     list($username) = pwg_db_fetch_assoc(pwg_query($query));;
     873    list($username) = pwg_db_fetch_row(pwg_query($query));
    874874
    875875    return isset($username) ? $username : '';
  • extensions/LCAS/trunk/main.inc.php

    r8197 r8201  
    6161    {
    6262      /* User non case sensitive */
    63       if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false')
     63      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true')
    6464      {
    65         $new_username =  LCAS_SearchUsername($_POST['username']); // Testing still under progress - This is not fully functionnal !
     65        $new_username =  LCAS_SearchUsername($_POST['username']);
    6666        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    6767      }
Note: See TracChangeset for help on using the changeset viewer.