Merge pull request #22940 from nextcloud/bugfix/noid/never-copy-password-on-enforced-passwords

Never copy the share link when the password is forced
This commit is contained in:
Roeland Jago Douma 2020-09-22 12:58:35 +02:00 committed by GitHub
commit 4123164155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -708,7 +708,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()