mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-28 09:03:41 +00:00
[UI] Improved flow for 409 errors (#11132)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user