1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

rename LoginService to LoginComponentService to avoid confusion with the LoginStrategyService

This commit is contained in:
rr-bw
2024-09-14 13:27:13 -07:00
parent d49c044ccc
commit 0bb18eb36c
13 changed files with 54 additions and 37 deletions

View File

@@ -21,8 +21,8 @@ export * from "./input-password/password-input-result";
// login
export * from "./login/login.component";
export * from "./login/login-secondary-content.component";
export * from "./login/login.service";
export * from "./login/default-login.service";
export * from "./login/login-component.service";
export * from "./login/default-login-component.service";
// password callout
export * from "./password-callout/password-callout.component";

View File

@@ -1,7 +1,7 @@
import { UrlTree } from "@angular/router";
import { firstValueFrom } from "rxjs";
import { LoginService, PasswordPolicies } from "@bitwarden/auth/angular";
import { LoginComponentService, PasswordPolicies } from "@bitwarden/auth/angular";
import { SsoLoginServiceAbstraction } from "@bitwarden/common/auth/abstractions/sso-login.service.abstraction";
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
@@ -9,7 +9,7 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { PasswordGenerationServiceAbstraction } from "@bitwarden/generator-legacy";
export class DefaultLoginService implements LoginService {
export class DefaultLoginComponentService implements LoginComponentService {
constructor(
protected cryptoFunctionService: CryptoFunctionService,
protected environmentService: EnvironmentService,

View File

@@ -9,7 +9,7 @@ export interface PasswordPolicies {
enforcedPasswordPolicyOptions: MasterPasswordPolicyOptions;
}
export abstract class LoginService {
export abstract class LoginComponentService {
// Web
getOrgPolicies: () => Promise<PasswordPolicies | null>;
setPreviousUrl: (route: UrlTree) => void | null;

View File

@@ -42,7 +42,7 @@ import {
import { AnonLayoutWrapperDataService } from "../anon-layout/anon-layout-wrapper-data.service";
import { WaveIcon } from "../icons";
import { LoginService } from "./login.service";
import { LoginComponentService } from "./login-component.service";
const BroadcasterSubscriptionId = "LoginComponent";
@@ -122,7 +122,7 @@ export class LoginComponent implements OnInit, OnDestroy {
private formBuilder: FormBuilder,
private i18nService: I18nService,
private loginEmailService: LoginEmailServiceAbstraction,
private loginService: LoginService,
private loginService: LoginComponentService,
private loginStrategyService: LoginStrategyServiceAbstraction,
private messagingService: MessagingService,
private ngZone: NgZone,