Skip to content

Commit

Permalink
Fix: no access-denied message on wrong password (fixes #229)
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-4ward committed Jun 24, 2022
1 parent ac18a15 commit e2b520b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/Download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@
this.error = e.toString();
}
} else if (xhr.status === 401) {
this.needsPassword = true;
if(this.needsPassword) {
this.passwordWrong = true;
} else {
this.needsPassword = true;
}
this.loading = false;
} else {
this.error = `${ xhr.status } ${ xhr.statusText }: ${ xhr.responseText }`;
Expand Down
4 changes: 4 additions & 0 deletions public/assets/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2b520b

Please sign in to comment.