2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-28 17:13:44 +00:00

[UI] Improved flow for 409 errors (#11132)

This commit is contained in:
Oliver
2026-01-14 09:56:14 +11:00
committed by GitHub
parent dc4861210c
commit f2cef4f266

View File

@@ -119,12 +119,13 @@ export async function doBasicLogin(
await handlePossibleMFAError(err); await handlePossibleMFAError(err);
break; break;
case 409: case 409:
doLogout(navigate);
notifications.show({ notifications.show({
title: t`Already logged in`, title: t`Logged Out`,
message: t`There is a conflicting session on the server for this browser. Please logout of that first.`, message: t`There was a conflicting session for this browser, which has been logged out.`,
color: 'red', color: 'red',
id: 'auth-login-error', id: 'auth-login-error',
autoClose: false autoClose: true
}); });
break; break;
default: default: