dont update the auth token twice
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2dcd97bf14
commit
25ed6714c7
|
@ -597,7 +597,6 @@ class Session implements IUserSession, Emitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbToken->setLastCheck($now);
|
$dbToken->setLastCheck($now);
|
||||||
$this->tokenProvider->updateToken($dbToken);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -608,7 +607,6 @@ class Session implements IUserSession, Emitter {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$dbToken->setLastCheck($now);
|
$dbToken->setLastCheck($now);
|
||||||
$this->tokenProvider->updateToken($dbToken);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -890,9 +890,6 @@ class SessionTest extends \Test\TestCase {
|
||||||
->method('getPassword')
|
->method('getPassword')
|
||||||
->with($token, 'APP-PASSWORD')
|
->with($token, 'APP-PASSWORD')
|
||||||
->will($this->throwException(new \OC\Authentication\Exceptions\PasswordlessTokenException()));
|
->will($this->throwException(new \OC\Authentication\Exceptions\PasswordlessTokenException()));
|
||||||
$tokenProvider->expects($this->once())
|
|
||||||
->method('updateToken')
|
|
||||||
->with($token);
|
|
||||||
|
|
||||||
$this->invokePrivate($userSession, 'validateSession', [$user]);
|
$this->invokePrivate($userSession, 'validateSession', [$user]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue