mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-24 17:36:39 +00:00
Ensure username is initialised to something appropriate.
Per: http://sourceforge.net/tracker/?func=detail&atid=890787&aid=3409180&group_id=179845
This commit is contained in:
parent
805a91f3ef
commit
1a35a111e7
@ -261,7 +261,7 @@ function sync_user_from_LDAP( Principal &$principal, $mapping, $ldap_values ) {
|
||||
|
||||
dbg_error_log( "LDAP", "Going to sync the user from LDAP" );
|
||||
|
||||
$fields_to_set = array();
|
||||
$fields_to_set = array( 'username' => $principal->username() );
|
||||
$updateable_fields = Principal::updateableFields();
|
||||
$updateable_fields[] = 'active'; // Backward compatibility: now 'user_exists'
|
||||
$updateable_fields[] = 'updated'; // Backward compatibility: now 'modified'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user