]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont update the auth token twice
authorRobin Appelman <robin@icewind.nl>
Wed, 24 Aug 2016 12:44:33 +0000 (14:44 +0200)
committerRobin Appelman <robin@icewind.nl>
Tue, 11 Oct 2016 09:05:25 +0000 (11:05 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/User/Session.php
tests/lib/User/SessionTest.php

index dec959820f86845f4c022b3027f0b8ca24129573..4b56609ccfc29cf985c61f9ce93135d85af8b269 100644 (file)
@@ -597,7 +597,6 @@ class Session implements IUserSession, Emitter {
                        }
 
                        $dbToken->setLastCheck($now);
-                       $this->tokenProvider->updateToken($dbToken);
                        return true;
                }
 
@@ -608,7 +607,6 @@ class Session implements IUserSession, Emitter {
                        return false;
                }
                $dbToken->setLastCheck($now);
-               $this->tokenProvider->updateToken($dbToken);
                return true;
        }
 
index 2cd6b9b3bedd490cd69d552cd497e0954386728a..37eb53ad166f725d347e08217facfb485e752033 100644 (file)
@@ -890,9 +890,6 @@ class SessionTest extends \Test\TestCase {
                        ->method('getPassword')
                        ->with($token, 'APP-PASSWORD')
                        ->will($this->throwException(new \OC\Authentication\Exceptions\PasswordlessTokenException()));
-               $tokenProvider->expects($this->once())
-                       ->method('updateToken')
-                       ->with($token);
 
                $this->invokePrivate($userSession, 'validateSession', [$user]);