From e2b520bc0025026b39b99475681c5aa177b48756 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Fri, 24 Jun 2022 13:42:58 +0200 Subject: [PATCH] Fix: no access-denied message on wrong password (fixes #229) --- app/src/Download.vue | 6 +++++- public/assets/styles.css | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/Download.vue b/app/src/Download.vue index 7378eb9b..143e22ad 100644 --- a/app/src/Download.vue +++ b/app/src/Download.vue @@ -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 }`; diff --git a/public/assets/styles.css b/public/assets/styles.css index 21ea4fe4..b6d8aea3 100644 --- a/public/assets/styles.css +++ b/public/assets/styles.css @@ -345,4 +345,8 @@ h1 .fa-icon { .table > tbody > tr > td { border-top: 1px solid rgba(79,84,92,0.48); } + + .text-danger { + color: #ff4c49; + } }