aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-24 14:44:33 +0200
committerRobin Appelman <robin@icewind.nl>2016-10-11 11:05:25 +0200
commit25ed6714c78f811e6ed6ae611df0c89d9e9278f9 (patch)
tree0c156ca8985d77acfab0ab0b41eca665557cf2e7
parent2dcd97bf144fac80d68df813d9d002bcbe3e1d6b (diff)
downloadnextcloud-server-25ed6714c78f811e6ed6ae611df0c89d9e9278f9.tar.gz
nextcloud-server-25ed6714c78f811e6ed6ae611df0c89d9e9278f9.zip
dont update the auth token twice
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/User/Session.php2
-rw-r--r--tests/lib/User/SessionTest.php3
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index dec959820f8..4b56609ccfc 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -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;
}
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php
index 2cd6b9b3bed..37eb53ad166 100644
--- a/tests/lib/User/SessionTest.php
+++ b/tests/lib/User/SessionTest.php
@@ -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]);