Fix switching to another account on mobile (#1108)

This commit is contained in:
RainLoop Team 2016-07-15 20:38:11 +03:00
parent c145137b25
commit e8df1cdb57
3 changed files with 24 additions and 13 deletions

View file

@ -1155,10 +1155,7 @@ class ServiceActions
return $sResult;
}
/**
* @return string
*/
public function ServiceChange()
private function changeAction()
{
$this->oHttp->ServerNoCache();
@ -1184,7 +1181,24 @@ class ServiceActions
$this->oActions->AuthToken($oAccountToLogin);
}
}
}
/**
* @return string
*/
public function ServiceChangeMobile()
{
$this->changeAction();
$this->oActions->Location('./?/Mobile/');
return '';
}
/**
* @return string
*/
public function ServiceChange()
{
$this->changeAction();
$this->oActions->Location('./');
return '';
}