diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-11 10:45:19 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-14 08:09:36 +0200 |
commit | 8c47a632e0afc5b38093818f70dcf4cdead42b4d (patch) | |
tree | b28f4dd055fae30ab2688f63ebe6eae00fa5f867 /apps/files_sharing | |
parent | 479e31997f0ecde8d3cf59cc54c5f8ac4b1f80d8 (diff) | |
download | nextcloud-server-8c47a632e0afc5b38093818f70dcf4cdead42b4d.tar.gz nextcloud-server-8c47a632e0afc5b38093818f70dcf4cdead42b4d.zip |
Allow updating the token on session regeneration
Sometimes when we force a session regeneration we want to update the
current token for this session.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index da0da6c27a8..739031d4bc2 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -217,7 +217,7 @@ class ShareController extends Controller { private function linkShareAuth(\OCP\Share\IShare $share, $password = null) { if ($password !== null) { if ($this->shareManager->checkPassword($share, $password)) { - $this->session->regenerateId(); + $this->session->regenerateId(true, true); $this->session->set('public_link_authenticated', (string)$share->getId()); } else { $this->emitAccessShareHook($share, 403, 'Wrong password'); |