Patch from jean-charles.passard@provectio.org to fix handling of account

prefixes
This commit is contained in:
Ralf Becker 2009-02-16 08:22:22 +00:00
parent 7fcc5b75e5
commit 185f934852
2 changed files with 6 additions and 2 deletions

View File

@ -266,6 +266,10 @@
{
$accountPrefix = $GLOBALS['egw_info']['server']['account_prefix'];
}
if($accountPrefix)
{
$userData['account_lid'] = $accountPrefix . $userData['account_lid'];
}
$errors = $this->validate_user($userData);
if(@is_array($errors))

View File

@ -562,7 +562,7 @@
}
$userData = array(
'account_type' => 'u',
'account_lid' => $accountPrefix . $_POST['account_lid'],
'account_lid' => $_POST['account_lid'],
'account_firstname' => $_POST['account_firstname'],
'account_lastname' => $_POST['account_lastname'],
'account_passwd' => $_POST['account_passwd'],
@ -855,7 +855,7 @@
$email = $GLOBALS['egw']->common->email_address($_POST['account_firstname'],$_POST['account_lastname'],$_POST['account_lid']);
}
$userData = array(
'account_lid' => $accountPrefix.$_POST['account_lid'],
'account_lid' => $_POST['account_lid'],
'account_firstname' => $_POST['account_firstname'],
'account_lastname' => $_POST['account_lastname'],
'account_passwd' => $_POST['account_passwd'],