mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
Fix emergency access confirm not working with two-factor enabled (#792)
This commit is contained in:
@@ -60,9 +60,12 @@ export class TwoFactorComponent extends BaseTwoFactorComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async goAfterLogIn() {
|
async goAfterLogIn() {
|
||||||
const invite = await this.stateService.get<any>('orgInvitation');
|
const orgInvite = await this.stateService.get<any>('orgInvitation');
|
||||||
if (invite != null) {
|
const emergencyInvite = await this.stateService.get<any>('emergencyInvitation');
|
||||||
this.router.navigate(['accept-organization'], { queryParams: invite });
|
if (orgInvite != null) {
|
||||||
|
this.router.navigate(['accept-organization'], { queryParams: orgInvite });
|
||||||
|
} else if (emergencyInvite != null) {
|
||||||
|
this.router.navigate(['accept-emergency'], { queryParams: emergencyInvite });
|
||||||
} else {
|
} else {
|
||||||
const loginRedirect = await this.stateService.get<any>('loginRedirect');
|
const loginRedirect = await this.stateService.get<any>('loginRedirect');
|
||||||
if (loginRedirect != null) {
|
if (loginRedirect != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user