]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix warning with token login 2164/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Nov 2016 15:33:56 +0000 (16:33 +0100)
committerRobin Appelman <robin@icewind.nl>
Wed, 16 Nov 2016 15:33:56 +0000 (16:33 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/User/Session.php

index 6033f0605041f6526e33316ad83ba6de260154c4..a45b1dcd10f259c8f8486da6f1a9b9aeb279f10e 100644 (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');