From 2a3dbbdad3d1e33eeb10abf5cb4db0e69b14a7c8 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 20 Apr 2026 22:34:39 +0000 Subject: [PATCH] Show login error on failure --- ts/view/Signin.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts/view/Signin.vue b/ts/view/Signin.vue index 3dc0c8c8..fbf3a39f 100644 --- a/ts/view/Signin.vue +++ b/ts/view/Signin.vue @@ -75,6 +75,10 @@

Don't have an account? Sign up

Forgot password? + +
+
{{ error }}
+
@@ -110,6 +114,7 @@ import { apiClient } from "@/client"; import ButtonLoading from "@/components/common/ButtonLoading.vue"; import { router } from "@/router"; +const error = ref(""); const loading = ref(false); const password = ref(""); const username = ref(""); @@ -123,6 +128,7 @@ async function doLogin() { router.push("/"); } catch (e) { console.log("login failed", e); + error.value = `Login failed: ${e}`; } finally { loading.value = false; }