mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-18 07:57:18 +00:00
Add meaningful message on CSRF failure (#12216)
* Add meaningful message on CSRF failure * Add link to CSRF_FAILURE_VIEW * Add unit test for new CSRF feedback
This commit is contained in:
1 parent
8afc8b3d50
commit
50577da65a
4 files changed
+85
-12
No files matched your search
@@ -131,7 +131,9 @@ export async function doBasicLogin(
|
||||
default:
|
||||
notifications.show({
|
||||
title: `${t`Login failed`} (${err.response.status})`,
|
||||
message: t`Check your input and try again.`,
|
||||
message:
|
||||
err.response?.data?.detail ??
|
||||
t`Check your input and try again.`,
|
||||
id: 'auth-login-error',
|
||||
color: 'red'
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user