From 1da890150d11d892affdf6a1c250bfba1ef9945a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 20 Aug 2020 12:03:46 +0200 Subject: Only copy the link when updating a share or no password was forced Signed-off-by: Joas Schilling Signed-off-by: npmbuildbot[bot] --- apps/files_sharing/src/components/SharingEntryLink.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue') diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index e81482e43bd..3ba4e59867e 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -708,7 +708,11 @@ export default { // Execute the copy link method // freshly created share component // ! somehow does not works on firefox ! - component.copyLink() + if (update || !this.config.enforcePasswordForPublicLink) { + // Only copy the link when the password was not forced, + // otherwise the user needs to copy/paste the password before finishing the share. + component.copyLink() + } } catch ({ response }) { const message = response.data.ocs.meta.message -- cgit v1.2.3