Minor UI improvements

This commit is contained in:
Yukino Song
2024-08-30 06:27:13 +08:00
parent 652661ea50
commit 1c217d95f0
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,11 @@
this.success = true;
location.href = './';
} else {
throw new Error(`Server returned ${res.status}`);
if (res.status === 401) {
throw new Error('Please check your username and password')
} else {
throw new Error(`Server returned ${res.status}`);
}
}
}).catch((e) => {
this.error = `Login failed: ${e.message}`;