diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-28 14:04:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 14:04:13 +0100 |
commit | 0cc771ce19642126fb764e8dcbd21100e770f4b0 (patch) | |
tree | 6fd3060945e79dea36aa7ca9572fddfc344c418e /lib/private/Authentication | |
parent | 518e2edba4541ba520386e20323c260e4dce5f0c (diff) | |
parent | 2183a1f3e6dddae2f49a0bd9ad30e1670f2d9d15 (diff) | |
download | nextcloud-server-0cc771ce19642126fb764e8dcbd21100e770f4b0.tar.gz nextcloud-server-0cc771ce19642126fb764e8dcbd21100e770f4b0.zip |
Merge pull request #2353 from nextcloud/renew-session-token-remember
copy remember-me value when renewing a session token
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r-- | lib/private/Authentication/Token/DefaultTokenProvider.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenProvider.php b/lib/private/Authentication/Token/DefaultTokenProvider.php index ec4cc10c269..0e1196a9da4 100644 --- a/lib/private/Authentication/Token/DefaultTokenProvider.php +++ b/lib/private/Authentication/Token/DefaultTokenProvider.php @@ -192,6 +192,7 @@ class DefaultTokenProvider implements IProvider { $newToken->setName($token->getName()); $newToken->setToken($this->hashToken($sessionId)); $newToken->setType(IToken::TEMPORARY_TOKEN); + $newToken->setRemember($token->getRemember()); $newToken->setLastActivity($this->time->getTime()); $this->mapper->insert($newToken); } |