summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-06-11 10:45:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-09 16:27:12 +0200
commitf84789f88bee0b5a6f83f9729b99a299cc64665c (patch)
tree4cb0c463789379cd165b70130c93afb7d1cc348d /apps
parent57ca183ea42cab2b3c4b5ef2c0a5f058efc39ebe (diff)
downloadnextcloud-server-f84789f88bee0b5a6f83f9729b99a299cc64665c.tar.gz
nextcloud-server-f84789f88bee0b5a6f83f9729b99a299cc64665c.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')
-rw-r--r--apps/files_sharing/lib/Controller/ShareController.php2
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 f8749526900..859873de1a2 100644
--- a/apps/files_sharing/lib/Controller/ShareController.php
+++ b/apps/files_sharing/lib/Controller/ShareController.php
@@ -204,7 +204,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');