Skip to content

Commit 09b1c85

Browse files
authored
Merge pull request #40533 from nextcloud/40493-auto-suggest-password
Auto set password for new email shares
2 parents 23a2e34 + a361335 commit 09b1c85

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,17 @@ export default {
683683
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
684684
this.setCustomPermissions = isCustomPermissions
685685
},
686-
initializeAttributes() {
686+
async initializeAttributes() {
687+
let hasAdvancedAttributes = false
687688
688-
if (this.isNewShare) return
689+
if (this.isNewShare) {
690+
if (this.isPasswordEnforced && this.isPublicShare) {
691+
this.share.newPassword = await GeneratePassword()
692+
this.advancedSectionAccordionExpanded = true
693+
}
694+
return
695+
}
689696
690-
let hasAdvancedAttributes = false
691697
if (this.isValidShareAttribute(this.share.note)) {
692698
this.writeNoteToRecipientIsChecked = true
693699
hasAdvancedAttributes = true

dist/1567-1567.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1567-1567.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/188-188.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/188-188.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)