Never copy the share link when the password is forced

Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Joas Schilling 2020-09-18 14:06:01 +02:00 committed by Roeland Jago Douma
parent dcceb1360f
commit 2169b7d484
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -686,7 +686,7 @@ export default {
// Execute the copy link method
// freshly created share component
// ! somehow does not works on firefox !
if (update || !this.config.enforcePasswordForPublicLink) {
if (!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()