Merge pull request #2164 from nextcloud/token-login-wanring

fix warning with token login
This commit is contained in:
Lukas Reschke 2016-11-17 03:28:39 +01:00 committed by GitHub
commit 13610ad2d0
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ class Session implements IUserSession, Emitter {
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
if ($this->isLoggedIn()) {
$this->prepareUserLogin();
$this->prepareUserLogin(false); // token login cant be the first
} else {
// injecting l10n does not work - there is a circular dependency between session and \OCP\L10N\IFactory
$message = \OC::$server->getL10N('lib')->t('Login canceled by app');