mirror of
https://github.com/bitwarden/jslib
synced 2025-12-19 09:43:28 +00:00
Update clients to use new authService interface
This commit is contained in:
@@ -93,7 +93,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
|
||||
}
|
||||
|
||||
try {
|
||||
this.formPromise = this.authService.logIn(this.email, this.masterPassword, this.captchaToken);
|
||||
this.formPromise = this.authService.logIn(this.email, this.masterPassword, null, this.captchaToken);
|
||||
const response = await this.formPromise;
|
||||
if (this.rememberEmail) {
|
||||
await this.stateService.setRememberedEmail(this.email);
|
||||
|
||||
@@ -193,9 +193,11 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
|
||||
|
||||
async doSubmit() {
|
||||
this.formPromise = this.authService.logInTwoFactor(
|
||||
this.selectedProviderType,
|
||||
this.token,
|
||||
this.remember
|
||||
{
|
||||
provider: this.selectedProviderType,
|
||||
token: this.token,
|
||||
remember: this.remember
|
||||
}
|
||||
);
|
||||
const response: AuthResult = await this.formPromise;
|
||||
const disableFavicon = await this.stateService.getDisableFavicon();
|
||||
|
||||
Reference in New Issue
Block a user