Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Redirect to login page on logout instead of start page (#2439)
Leendert de Borstad1ddab03135
diff --git a/apps/web/src/pages/auth/Logout.tsx b/apps/web/src/pages/auth/Logout.tsxindex b1cf3f0dd..d0419ddd3 100644--- a/apps/web/src/pages/auth/Logout.tsx+++ b/apps/web/src/pages/auth/Logout.tsx@@ -26,13 +26,13 @@ const Logout: React.FC = () => {hasStarted.current = true;/**- * Revoke the tokens and redirect to the start page.+ * Revoke the tokens and redirect to the login page.*/const run = async (): Promise<void> => {await auth.logout({ userInitiated: true });notifications.clearMessages();await delay(500);- navigate('/', { replace: true });+ navigate('/user/login', { replace: true });};void run();}, [auth, notifications, navigate]);diff --git a/apps/web/tests/e2e/06-settings.spec.ts b/apps/web/tests/e2e/06-settings.spec.tsindex 072bb76ab..49cfdc8f5 100644--- a/apps/web/tests/e2e/06-settings.spec.ts+++ b/apps/web/tests/e2e/06-settings.spec.ts@@ -33,7 +33,7 @@ test.describe('6. Settings', () => {await test.step('a browser without local preferences takes the language from the vault', async () => {await page.goto('/user/logout');- await expect(page).toHaveURL(/\/user\/start$/);+ await expect(page).toHaveURL(/\/user\/login$/);await page.evaluate(() => localStorage.clear());await app.login(testUser.username, testUser.password);await expect(emailsLink('E-mails')).toBeVisible();diff --git a/apps/web/tests/fixtures/WebApp.ts b/apps/web/tests/fixtures/WebApp.tsindex d867ce50a..6552f6480 100644--- a/apps/web/tests/fixtures/WebApp.ts+++ b/apps/web/tests/fixtures/WebApp.ts@@ -18,12 +18,12 @@ export class WebApp {}/**- * Log out via the user menu and wait for the start page.+ * Log out via the user menu and wait for the login page.*/public async logout(): Promise<void> {await this.page.locator('#toggleMobileMenuButton').click();await this.page.locator('#mobileMenuDropdown').getByRole('link', { name: 'Log out' }).click();- await expect(this.page).toHaveURL(/\/user\/start$/);+ await expect(this.page).toHaveURL(/\/user\/login$/);}/**