summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-11 10:02:30 +0200
committerGitHub <noreply@github.com>2018-07-11 10:02:30 +0200
commit4ff6ea9a5542c9669a4cbff14ff261546eb15b6f (patch)
tree8f10ff8edcf2c69767282f545207e368ec46d1c9 /apps
parentc99529834ce4e840b4905c17e84457d23a0d1413 (diff)
parentf84789f88bee0b5a6f83f9729b99a299cc64665c (diff)
downloadnextcloud-server-4ff6ea9a5542c9669a4cbff14ff261546eb15b6f.tar.gz
nextcloud-server-4ff6ea9a5542c9669a4cbff14ff261546eb15b6f.zip
Merge pull request #10170 from nextcloud/backport/9823/stable13
[stable13] Allow updating the token on session regeneration
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');