Skip to content

Commit fee656a

Browse files
committed
fix(files_sharing): Allow removing password from link shares
Fixes regression from a28834b Signed-off-by: nfebe <[email protected]>
1 parent d4e243b commit fee656a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default {
182182
this.$set(this.share, 'newPassword', await GeneratePassword(true))
183183
} else {
184184
this.passwordProtectedState = false
185-
this.$delete(this.share, 'newPassword')
185+
this.$set(this.share, 'newPassword', '')
186186
}
187187
},
188188
},
@@ -342,7 +342,7 @@ export default {
342342

343343
if (propertyNames.includes('password')) {
344344
// reset password state after sync
345-
this.share.password = this.share.newPassword ?? ''
345+
this.share.password = this.share.newPassword || undefined
346346
this.$delete(this.share, 'newPassword')
347347

348348
// updates password expiration time after sync

0 commit comments

Comments
 (0)