Merge pull request #7297 from nextcloud/fgsl-master

Loss of performance on Login after upgrade from NC10 + LDAP to NC 12+ LDAP
This commit is contained in:
Joas Schilling 2017-11-27 11:11:00 +01:00 committed by GitHub
commit 3d7489cfd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class DefaultTokenProvider implements IProvider {
$dbToken->setType($type);
$dbToken->setRemember($remember);
$dbToken->setLastActivity($this->time->getTime());
$dbToken->setLastCheck($this->time->getTime());
$this->mapper->insert($dbToken);

View File

@ -91,6 +91,7 @@ class DefaultTokenProviderTest extends TestCase {
$toInsert->setType($type);
$toInsert->setRemember(IToken::DO_NOT_REMEMBER);
$toInsert->setLastActivity($this->time);
$toInsert->setLastCheck($this->time);
$this->config->expects($this->any())
->method('getSystemValue')