mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(auth): improved error handling during login (#1523)
This commit is contained in:
parent
f820060492
commit
f8715c193c
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ export const Login = () => {
|
||||||
auth.login(variables.username)
|
auth.login(variables.username)
|
||||||
router.invalidate()
|
router.invalidate()
|
||||||
},
|
},
|
||||||
onError: () => {
|
onError: (error) => {
|
||||||
toast.custom((t) => (
|
toast.custom((t) => (
|
||||||
<Toast type="error" body="Wrong password or username!" t={t} />
|
<Toast type="error" body={error.message || "An error occurred!"} t={t} />
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue