diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-11-27 14:19:57 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-11-27 14:19:57 +0100 |
commit | 2183a1f3e6dddae2f49a0bd9ad30e1670f2d9d15 (patch) | |
tree | d1faca92deb7342d2adb2e206da40eb6113f83bc /lib | |
parent | 7e6f829d546a95acc3421c5fd9dd7574fa291994 (diff) | |
download | nextcloud-server-2183a1f3e6dddae2f49a0bd9ad30e1670f2d9d15.tar.gz nextcloud-server-2183a1f3e6dddae2f49a0bd9ad30e1670f2d9d15.zip |
copy remember-me value when renewing a session token
On renew, a session token is duplicated. For some reason we did
not copy over the remember-me attribute value. Hence, the new token
was deleted too early in the background job and remember-me did
not work properly.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-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); } |