Skip to content

Commit

Permalink
Public link change password validation bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 19, 2023
1 parent 827d57c commit 0bc62b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Public link empty password stays forever

We've fixed a bug that caused the error message for the public link password to stay forever.

https://github.com/owncloud/web/pull/8864
https://github.com/owncloud/web/issues/8521
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export default defineComponent({
if (password.length > 72) {
return this.setModalInputErrorMessage(this.$gettext("Password can't exceed 72 characters"))
}
return this.setModalInputErrorMessage(null)
return this.setModalInputErrorMessage('')
},
showPasswordModal() {
Expand All @@ -467,7 +467,6 @@ export default defineComponent({
cancelText: this.$gettext('Cancel'),
confirmText: this.link.password ? this.$gettext('Apply') : this.$gettext('Set'),
hasInput: true,
inputDescription: this.$gettext("Password can't be empty"),
inputLabel: this.$gettext('Password'),
inputType: 'password',
onCancel: this.hideModal,
Expand All @@ -484,8 +483,8 @@ export default defineComponent({
})
}
}
this.createModal(modal)
this.setModalInputErrorMessage(this.$gettext("Password can't be empty"))
}
}
})
Expand Down

0 comments on commit 0bc62b0

Please sign in to comment.