forked from extern/egroupware
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)
|
||||
{
|
||||
$parts = explode('@',$both);
|
||||
$domain = array_pop($parts);
|
||||
$domain = count($parts) > 1 ? array_pop($parts) :
|
||||
$GLOBALS['phpgw_info']['server']['default_domain'];
|
||||
$login = implode('@',$parts);
|
||||
}
|
||||
|
||||
@ -286,11 +287,6 @@
|
||||
|
||||
$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;
|
||||
|
||||
$this->update_dla();
|
||||
@ -507,11 +503,6 @@
|
||||
|
||||
$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";
|
||||
$user_ip = $this->getuser_ip();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user