Skip to content

Commit

Permalink
dont update the auth token twice
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Aug 26, 2016
1 parent 53725d4 commit 9810907
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,6 @@ private function checkTokenCredentials(IToken $dbToken, $token) {
return false;
}
$dbToken->setLastCheck($now);
$this->tokenProvider->updateToken($dbToken);
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/User/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public function testLogClientInNoTokenPasswordWith2fa() {
->method('sleepDelay')
->with('192.168.0.1');
$this->throttler
->expects($this->once())
->expects($this->any())
->method('getDelay')
->with('192.168.0.1')
->willReturn(0);
Expand Down

0 comments on commit 9810907

Please sign in to comment.