From 1280732341715db994030cb0a43ba881e4f9f6e3 Mon Sep 17 00:00:00 2001 From: yylyyl Date: Wed, 8 Nov 2023 14:51:52 -0500 Subject: [PATCH] more detailed login error message --- web/src/routes/Login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/routes/Login.js b/web/src/routes/Login.js index e9013e8..bd1b4a2 100644 --- a/web/src/routes/Login.js +++ b/web/src/routes/Login.js @@ -46,6 +46,8 @@ export default function Login() { if (error.response) { if (error.response.status === 401) { e = "Incorrect username or password"; + } else { + e = error.response.data; } } enqueueSnackbar(e, {