diff --git a/apps/web/src/app/auth/login/login.component.html b/apps/web/src/app/auth/login/login.component.html index 64f1e80a99..5f8e4d0b0e 100644 --- a/apps/web/src/app/auth/login/login.component.html +++ b/apps/web/src/app/auth/login/login.component.html @@ -40,7 +40,7 @@ routerLink="/login-with-passkey" (mousedown)="$event.preventDefault()" > - {{ "loginWithPasskey" | i18n }} + {{ "logInWithPasskey" | i18n }} diff --git a/apps/web/src/app/oss-routing.module.ts b/apps/web/src/app/oss-routing.module.ts index 85ea97fc1e..53ffb04554 100644 --- a/apps/web/src/app/oss-routing.module.ts +++ b/apps/web/src/app/oss-routing.module.ts @@ -1,6 +1,7 @@ import { NgModule } from "@angular/core"; import { Route, RouterModule, Routes } from "@angular/router"; +import { unauthUiRefreshSwap } from "@bitwarden/angular/auth/functions/unauth-ui-refresh-route-swap"; import { authGuard, lockGuard, @@ -20,6 +21,7 @@ import { LockIcon, RegistrationLinkExpiredComponent, LoginComponentV2, + LoginSecondaryContentComponent, } from "@bitwarden/auth/angular"; import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum"; @@ -168,6 +170,51 @@ const routes: Routes = [ }, ], }, + ...unauthUiRefreshSwap( + AnonLayoutWrapperComponent, + AnonLayoutWrapperComponent, + { + path: "login", + canActivate: [unauthGuardFn()], + children: [ + { + path: "", + component: LoginComponent, + }, + { + path: "", + component: EnvironmentSelectorComponent, + outlet: "environment-selector", + }, + ], + data: { + pageTitle: "logIn", + }, + }, + { + path: "login", + canActivate: [unauthGuardFn()], + data: { + pageTitle: "logInToBitwarden", + } satisfies DataProperties & AnonLayoutWrapperData, + children: [ + { + path: "", + component: LoginComponentV2, + }, + { + path: "", + component: LoginSecondaryContentComponent, + outlet: "secondary", + }, + { + path: "", + component: EnvironmentSelectorComponent, + outlet: "environment-selector", + }, + ], + }, + ), { path: "", component: AnonLayoutWrapperComponent, @@ -269,24 +316,6 @@ const routes: Routes = [ }, ], }, - { - path: "login", - canActivate: [unauthGuardFn()], - data: { - pageTitle: "logInToBitwarden", - } satisfies DataProperties & AnonLayoutWrapperData, - children: [ - { - path: "", - component: LoginComponentV2, - }, - { - path: "", - component: EnvironmentSelectorComponent, - outlet: "environment-selector", - }, - ], - }, { path: "lock", canActivate: [deepLinkGuard(), lockGuard()], diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index cec3a7b21b..d2e4db7b50 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -881,6 +881,9 @@ "createAccount": { "message": "Create account" }, + "newToBitwarden": { + "message": "New to Bitwarden?" + }, "setAStrongPassword": { "message": "Set a strong password" }, diff --git a/libs/auth/src/angular/login/login.component.html b/libs/auth/src/angular/login/login.component.html index 8effb5147e..07f0190c14 100644 --- a/libs/auth/src/angular/login/login.component.html +++ b/libs/auth/src/angular/login/login.component.html @@ -44,31 +44,26 @@ > -
- - {{ "emailAddress" | i18n }} - - -
+ + {{ "emailAddress" | i18n }} + + -
- - - {{ "rememberEmail" | i18n }} - -
+ + + {{ "rememberEmail" | i18n }} + - -
+
+ -
- -
-

{{ "or" | i18n }}

+
{{ "or" | i18n }}
+ +
-
- + -

- {{ "newAroundHere" | i18n }} - + - {{ "createAccount" | i18n }} -

+

-->