mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(files_sharing): Allow removing password from link shares
Fixes regression from a28834b163
Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
parent
570c5228d6
commit
844cddd3fa
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ export default {
|
|||
this.$set(this.share, 'newPassword', await GeneratePassword(true))
|
||||
} else {
|
||||
this.passwordProtectedState = false
|
||||
this.$delete(this.share, 'newPassword')
|
||||
this.$set(this.share, 'newPassword', '')
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
@ -342,7 +342,7 @@ export default {
|
|||
|
||||
if (propertyNames.includes('password')) {
|
||||
// reset password state after sync
|
||||
this.share.password = this.share.newPassword ?? ''
|
||||
this.share.password = this.share.newPassword || undefined
|
||||
this.$delete(this.share, 'newPassword')
|
||||
|
||||
// updates password expiration time after sync
|
||||
|
|
|
|||
Loading…
Reference in a new issue