Skip to content

Commit

Permalink
Auto set password for new email shares
Browse files Browse the repository at this point in the history
Suggest auto generated password for new public share (mail share).

Resolves : #40493

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS committed Sep 20, 2023
1 parent c5377c5 commit ea881c8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
12 changes: 9 additions & 3 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Expand Up @@ -672,11 +672,17 @@ export default {
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
this.setCustomPermissions = isCustomPermissions
},
initializeAttributes() {
async initializeAttributes() {
let hasAdvancedAttributes = false
if (this.isNewShare) return
if (this.isNewShare) {
if (this.isPasswordEnforced && this.isPublicShare) {
this.share.newPassword = await GeneratePassword()
this.advancedSectionAccordionExpanded = true
}
return
}
let hasAdvancedAttributes = false
if (this.isValidShareAttribute(this.share.note)) {
this.writeNoteToRecipientIsChecked = true
hasAdvancedAttributes = true
Expand Down
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit ea881c8

Please sign in to comment.