mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Patch from jean-charles.passard@provectio.org to fix handling of account
prefixes
This commit is contained in:
parent
7fcc5b75e5
commit
185f934852
@ -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))
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user