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; }