Skip to content

Commit ea881c8

Browse files
committed
Auto set password for new email shares
Suggest auto generated password for new public share (mail share). Resolves : #40493 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
1 parent c5377c5 commit ea881c8

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,17 @@ export default {
672672
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
673673
this.setCustomPermissions = isCustomPermissions
674674
},
675-
initializeAttributes() {
675+
async initializeAttributes() {
676+
let hasAdvancedAttributes = false
676677
677-
if (this.isNewShare) return
678+
if (this.isNewShare) {
679+
if (this.isPasswordEnforced && this.isPublicShare) {
680+
this.share.newPassword = await GeneratePassword()
681+
this.advancedSectionAccordionExpanded = true
682+
}
683+
return
684+
}
678685
679-
let hasAdvancedAttributes = false
680686
if (this.isValidShareAttribute(this.share.note)) {
681687
this.writeNoteToRecipientIsChecked = true
682688
hasAdvancedAttributes = true

dist/core-common.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/core-common.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.

dist/files-main.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-main.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.

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)