Skip to content

Commit 9707bf4

Browse files
committed
fix: updates password expiration time in the frontend after updating a
share password. Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
1 parent 7409316 commit 9707bf4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/files_sharing/src/mixins/SharesMixin.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,14 @@ export default {
235235
this.saving = true
236236
this.errors = {}
237237
try {
238-
await this.updateShare(this.share.id, properties)
239-
238+
const updatedShare = await this.updateShare(this.share.id, properties)
239+
240240
if (propertyNames.indexOf('password') >= 0) {
241241
// reset password state after sync
242242
this.$delete(this.share, 'newPassword')
243+
244+
// updates password expiration time after sync
245+
this.share.passwordExpirationTime = updatedShare.password_expiration_time
243246
}
244247

245248
// clear any previous errors

0 commit comments

Comments
 (0)