fix warning with token login
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
61453f5fd5
commit
0e88b519d1
|
@ -529,7 +529,7 @@ class Session implements IUserSession, Emitter {
|
||||||
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
|
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));
|
||||||
|
|
||||||
if ($this->isLoggedIn()) {
|
if ($this->isLoggedIn()) {
|
||||||
$this->prepareUserLogin();
|
$this->prepareUserLogin(false); // token login cant be the first
|
||||||
} else {
|
} else {
|
||||||
// injecting l10n does not work - there is a circular dependency between session and \OCP\L10N\IFactory
|
// 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');
|
$message = \OC::$server->getL10N('lib')->t('Login canceled by app');
|
||||||
|
|
Loading…
Reference in New Issue