Skip to content

Commit

Permalink
Fix missing password form on public drop page
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 21, 2022
1 parent 1b489b1 commit fddde38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-missing-public-password-form
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Missing password form on public drop page

We've fixed a bug where the password form on a public drop page would not show after setting a required password.

https://github.com/owncloud/web/pull/8007
https://github.com/owncloud/web/issues/7670
3 changes: 2 additions & 1 deletion packages/web-app-files/src/views/FilesDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { usePublicLinkPassword, useStore } from 'web-pkg/src/composables'
import { eventBus } from 'web-pkg/src/services/eventBus'
import { linkRoleUploaderFolder } from 'web-client/src/helpers/share'
import { defineComponent } from '@vue/composition-api'
import { authService } from 'web-runtime/src/services/auth'
export default defineComponent({
components: {
Expand Down Expand Up @@ -151,7 +152,7 @@ export default defineComponent({
.catch((error) => {
// likely missing password, redirect to public link password prompt
if (error.statusCode === 401) {
return this.$authService.handleAuthError(this.$router.currentRoute)
return authService.handleAuthError(this.$router.currentRoute)
}
console.error(error)
this.errorMessage = error
Expand Down

0 comments on commit fddde38

Please sign in to comment.