Skip to content

Commit

Permalink
more detailed login error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yylyyl committed Nov 8, 2023
1 parent 7137bb8 commit 1280732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/routes/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 1280732

Please sign in to comment.