diff --git a/frontend/src/component/user/HostedAuth.tsx b/frontend/src/component/user/HostedAuth.tsx index 410a199a71..2cbe3ee86a 100644 --- a/frontend/src/component/user/HostedAuth.tsx +++ b/frontend/src/component/user/HostedAuth.tsx @@ -80,7 +80,7 @@ const HostedAuth: VFC = ({ authDetails, redirect }) => { setToastData({ type: 'success', title: 'Maximum Session Limit Reached', - text: `You can have up to ${data.activeSessions} active sessions at a time. To allow this login, we’ve logged out ${data.deletedSessions} session(s) from other browsers.`, + text: `You can have up to ${data.activeSessions} active sessions at a time. To enhance your account security, we’ve ended ${data.deletedSessions} session(s) on other browsers.`, }); } refetchUser(); diff --git a/frontend/src/component/user/PasswordAuth.test.tsx b/frontend/src/component/user/PasswordAuth.test.tsx index bffdda6539..38d7699f63 100644 --- a/frontend/src/component/user/PasswordAuth.test.tsx +++ b/frontend/src/component/user/PasswordAuth.test.tsx @@ -47,6 +47,9 @@ test('should show deleted stale sessions info for Password Auth', async () => { button.click(); await screen.findByText('Maximum Session Limit Reached'); + await screen.findByText( + 'You can have up to 3 active sessions at a time. To enhance your account security, we’ve ended 1 session(s) on other browsers.', + ); }); test('should show deleted stale sessions info for Hosted Auth', async () => { @@ -73,4 +76,7 @@ test('should show deleted stale sessions info for Hosted Auth', async () => { button.click(); await screen.findByText('Maximum Session Limit Reached'); + await screen.findByText( + 'You can have up to 3 active sessions at a time. To enhance your account security, we’ve ended 1 session(s) on other browsers.', + ); }); diff --git a/frontend/src/component/user/PasswordAuth.tsx b/frontend/src/component/user/PasswordAuth.tsx index 6b9d433650..95bb12bfea 100644 --- a/frontend/src/component/user/PasswordAuth.tsx +++ b/frontend/src/component/user/PasswordAuth.tsx @@ -79,7 +79,7 @@ const PasswordAuth: VFC = ({ authDetails, redirect }) => { setToastData({ type: 'success', title: 'Maximum Session Limit Reached', - text: `You can have up to ${data.activeSessions} active sessions at a time. To allow this login, we’ve logged out ${data.deletedSessions} session(s) from other browsers.`, + text: `You can have up to ${data.activeSessions} active sessions at a time. To enhance your account security, we’ve ended ${data.deletedSessions} session(s) on other browsers.`, }); }