mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
rename 'response' to 'authResult'
This commit is contained in:
@@ -163,17 +163,17 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
|||||||
null,
|
null,
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.loginStrategyService.logIn(credentials);
|
const authResult = await this.loginStrategyService.logIn(credentials);
|
||||||
|
|
||||||
await this.saveEmailSettings();
|
await this.saveEmailSettings();
|
||||||
|
|
||||||
if (this.handleCaptchaRequired(response)) {
|
if (this.handleCaptchaRequired(authResult)) {
|
||||||
return;
|
return;
|
||||||
} else if (await this.loginService.handleMigrateEncryptionKey(response)) {
|
} else if (await this.loginService.handleMigrateEncryptionKey(authResult)) {
|
||||||
return;
|
return;
|
||||||
} else if (response.requiresTwoFactor) {
|
} else if (authResult.requiresTwoFactor) {
|
||||||
await this.router.navigate(["2fa"]);
|
await this.router.navigate(["2fa"]);
|
||||||
} else if (response.forcePasswordReset != ForceSetPasswordReason.None) {
|
} else if (authResult.forcePasswordReset != ForceSetPasswordReason.None) {
|
||||||
this.loginEmailService.clearValues();
|
this.loginEmailService.clearValues();
|
||||||
await this.router.navigate(["update-temp-password"]);
|
await this.router.navigate(["update-temp-password"]);
|
||||||
} else {
|
} else {
|
||||||
@@ -184,7 +184,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
|||||||
// Browser/Desktop specific (end)
|
// Browser/Desktop specific (end)
|
||||||
|
|
||||||
// Web specific (start)
|
// Web specific (start)
|
||||||
await this.goAfterLogIn(response.userId);
|
await this.goAfterLogIn(authResult.userId);
|
||||||
// Web specific (end)
|
// Web specific (end)
|
||||||
|
|
||||||
// Browser/Desktop (start)
|
// Browser/Desktop (start)
|
||||||
|
|||||||
Reference in New Issue
Block a user