2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-05 06:32:55 +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:
Oliver
2026-06-20 23:49:36 +10:00
committed by GitHub
parent 8afc8b3d50
commit 50577da65a
4 changed files with 85 additions and 12 deletions
+3 -1
View File
@@ -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'
});