summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-07 16:29:05 +0100
committerGitHub <noreply@github.com>2018-11-07 16:29:05 +0100
commit7940a79a410c815915f25d8d36ec08afb27b610b (patch)
tree9683ee45aeed966eaab75ca6f965184c3dbd89e9 /apps/files_sharing/lib/Controller
parentab3543380c96b0beb5de4db977bbc12894379288 (diff)
parentb2cc2d602396b7456a59a44f415669dd8fca0e05 (diff)
downloadnextcloud-server-7940a79a410c815915f25d8d36ec08afb27b610b.tar.gz
nextcloud-server-7940a79a410c815915f25d8d36ec08afb27b610b.zip
Merge pull request #12324 from nextcloud/add-password-response-parameter-for-returning-the-password-of-link-shares
Add "password" parameter to the response data of link shares
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index f61b9dac58a..e33f93e8ce6 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -208,9 +208,13 @@ class ShareAPIController extends OCSController {
$result['share_with_displayname'] = $group !== null ? $group->getDisplayName() : $share->getSharedWith();
} else if ($share->getShareType() === Share::SHARE_TYPE_LINK) {
+ // "share_with" and "share_with_displayname" for passwords of link
+ // shares was deprecated in Nextcloud 15, use "password" instead.
$result['share_with'] = $share->getPassword();
$result['share_with_displayname'] = $share->getPassword();
+ $result['password'] = $share->getPassword();
+
$result['send_password_by_talk'] = $share->getSendPasswordByTalk();
$result['token'] = $share->getToken();