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 <[email protected]>
  • Loading branch information
nfebe committed Sep 26, 2023
1 parent 2288e8e commit 5f68165
Show file tree
Hide file tree
Showing 97 changed files with 158 additions and 138 deletions.
12 changes: 9 additions & 3 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,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
3 changes: 3 additions & 0 deletions dist/1567-1567.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/1567-1567.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions dist/188-188.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/188-188.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/3609-3609.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/3609-3609.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/5912-5912.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/5912-5912.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/6678-6678.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/6678-6678.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/6870-6870.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/6870-6870.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/comments-comments-app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comments-comments-app.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/comments-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comments-init.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5f68165

Please sign in to comment.