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);
|
||||
break;
|
||||
case 409:
|
||||
doLogout(navigate);
|
||||
notifications.show({
|
||||
title: t`Already logged in`,
|
||||
message: t`There is a conflicting session on the server for this browser. Please logout of that first.`,
|
||||
title: t`Logged Out`,
|
||||
message: t`There was a conflicting session for this browser, which has been logged out.`,
|
||||
color: 'red',
|
||||
id: 'auth-login-error',
|
||||
autoClose: false
|
||||
autoClose: true
|
||||
});
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user