mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Regenerate session id after public share auth
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
043acfebab
commit
5eb6d7bc05
1 changed files with 1 additions and 0 deletions
|
|
@ -204,6 +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->set('public_link_authenticated', (string)$share->getId());
|
||||
} else {
|
||||
$this->emitAccessShareHook($share, 403, 'Wrong password');
|
||||
|
|
|
|||
Loading…
Reference in a new issue