Changeset ee2187e in github


Ignore:
Timestamp:
Aug 7, 2012 5:54:37 AM (10 months ago)
Author:
Aleksander Machniak <alec@…>
Children:
024f2ab8
Parents:
887838d
Message:

Fix errors after removing users.alias column (#1488581)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/new_user_identity/new_user_identity.php

    r48e9c14 ree2187e  
    2020 *  // new identity, match the user's login name against this field. 
    2121 *  $rcmail_config['new_user_identity_match'] = 'uid'; 
    22  * 
    23  *  // Use this field (from fieldmap configuration) to fill alias col of 
    24  *  // the new user record. 
    25  *  $rcmail_config['new_user_identity_alias'] = 'alias'; 
    2622 */ 
    2723class new_user_identity extends rcube_plugin 
     
    3935    { 
    4036        $rcmail = rcmail::get_instance(); 
    41          
     37 
    4238        if ($this->init_ldap($args['host'])) { 
    4339            $results = $this->ldap->search('*', $args['user'], TRUE); 
     
    4642                if (!$args['user_email'] && strpos($results->records[0]['email'], '@')) { 
    4743                    $args['user_email'] = rcube_idn_to_ascii($results->records[0]['email']); 
    48                 } 
    49                 if (($alias_col = $rcmail->config->get('new_user_identity_alias')) && $results->records[0][$alias_col]) { 
    50                   $args['alias'] = $results->records[0][$alias_col]; 
    5144                } 
    5245            } 
  • plugins/new_user_identity/package.xml

    r48e9c14 ree2187e  
    1616                <active>yes</active> 
    1717        </lead> 
    18         <date>2011-11-21</date> 
     18        <date>2012-08-07</date> 
    1919        <version> 
    20                 <release>1.0.5</release> 
    21                 <api>1.0</api> 
     20                <release>1.0.6</release> 
     21                <api>1.1</api> 
    2222        </version> 
    2323        <stability> 
  • plugins/password/drivers/virtualmin.php

    r6ffe0be ree2187e  
    4949            $domain = $pieces[0]; 
    5050            break; 
    51                 case 8: // domain taken from alias, username left as it was 
    52                         $email = $rcmail->user->data['alias']; 
    53                         $domain = substr(strrchr($email, "@"), 1); 
    54                         break 
    5551        default: // username@domain 
    5652            $domain = substr(strrchr($username, "@"), 1); 
  • program/include/rcube_user.php

    r565c472 ree2187e  
    457457        $dbh->query( 
    458458            "INSERT INTO ".$dbh->table_name('users'). 
    459             " (created, last_login, username, mail_host, alias, language)". 
    460             " VALUES (".$dbh->now().", ".$dbh->now().", ?, ?, ?, ?)", 
     459            " (created, last_login, username, mail_host, language)". 
     460            " VALUES (".$dbh->now().", ".$dbh->now().", ?, ?, ?)", 
    461461            strip_newlines($user), 
    462462            strip_newlines($host), 
    463             strip_newlines($data['alias'] ? $data['alias'] : $user_email), 
    464463            strip_newlines($data['language'] ? $data['language'] : $_SESSION['language'])); 
    465464 
Note: See TracChangeset for help on using the changeset viewer.