mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix for multidomain-install without domain-selectbox
This commit is contained in:
parent
4290a272f0
commit
ad48945359
@ -247,7 +247,8 @@
|
|||||||
function split_login_domain($both,&$login,&$domain)
|
function split_login_domain($both,&$login,&$domain)
|
||||||
{
|
{
|
||||||
$parts = explode('@',$both);
|
$parts = explode('@',$both);
|
||||||
$domain = array_pop($parts);
|
$domain = count($parts) > 1 ? array_pop($parts) :
|
||||||
|
$GLOBALS['phpgw_info']['server']['default_domain'];
|
||||||
$login = implode('@',$parts);
|
$login = implode('@',$parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -286,11 +287,6 @@
|
|||||||
|
|
||||||
$this->split_login_domain($session['session_lid'],$this->account_lid,$this->account_domain);
|
$this->split_login_domain($session['session_lid'],$this->account_lid,$this->account_domain);
|
||||||
|
|
||||||
if ($this->account_domain == '')
|
|
||||||
{
|
|
||||||
$this->account_domain = $GLOBALS['phpgw_info']['server']['default_domain'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['phpgw_info']['user']['kp3'] = $this->kp3;
|
$GLOBALS['phpgw_info']['user']['kp3'] = $this->kp3;
|
||||||
|
|
||||||
$this->update_dla();
|
$this->update_dla();
|
||||||
@ -507,11 +503,6 @@
|
|||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
if (strstr($login,'@') === False)
|
|
||||||
{
|
|
||||||
$this->account_domain = $GLOBALS['phpgw_info']['server']['default_domain'];
|
|
||||||
}
|
|
||||||
|
|
||||||
//echo "<p>session::create(login='$login'): lid='$this->account_lid', domain='$this->account_domain'</p>\n";
|
//echo "<p>session::create(login='$login'): lid='$this->account_lid', domain='$this->account_domain'</p>\n";
|
||||||
$user_ip = $this->getuser_ip();
|
$user_ip = $this->getuser_ip();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user