summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-01 21:46:32 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-01 21:46:32 +0100
commit619a4d2e523052f0b2b55f1819aff6bc9883537a (patch)
tree712ee014c77e4854e26168a31de1a4730f19fd4b /lib/private
parentb4853f3fce696b8b89f0dd898b25d7fde93e1a92 (diff)
downloadnextcloud-server-619a4d2e523052f0b2b55f1819aff6bc9883537a.tar.gz
nextcloud-server-619a4d2e523052f0b2b55f1819aff6bc9883537a.zip
Update old password hashed for link shares on access
Fixes https://github.com/owncloud/core/issues/16594
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/share20/manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index e45fa4b40f9..581e62fbd7e 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -819,7 +819,9 @@ class Manager implements IManager {
}
if (!empty($newHash)) {
- //TODO update hash!
+ $share->setPassword($newHash);
+ $provider = $this->factory->getProviderForType($share->getShareType());
+ $provider->update($share);
}
return true;